Tell us what’s happening:
Now, define another class named LinearEquation and make it inherit from Equation. You’ll use this class to represent linear equations.
how do i go about this
Your code so far
class Equation:
def solve(self):
pass
def analyze(self):
pass
# User Editable Region
class LinearEquestion(Equation):
def __init__(self , a ,b )
self.a = a
self.b = b
def solve():
a+b
# User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Challenge Information:
Learn Interfaces by Building an Equation Solver - Step 3