Question: - :Write a class called linear to represents a linear equation (a x + b = 0). The .A constructor with one tuple argument called

- :Write a class called linear to represents a linear equation (a x + b = 0). The .A constructor with one tuple argument called coefficients to define and initialize two instant variables, a and b, wit -getCoff method that returns a tuple of -getRoot method that returns the root of e .isRoot method with one real number argument that checks if a given number is the equation's root or not. Use ge An overloading method for the str() operator that returns the equation . An overloading method for the == operator that returns True only if coefficients, a and b, are the same fo Write a class called quadratic that is derived from linear class to :( X2 + b + a = 0). The nts assigned to a hidden private) instant variable, c, and the two linear object attributes, a and b, with default values of 0. Call the super class constructor . An overriding method for getCoff method that returns a tuple of coefficients c, b An overriding method for getRoot that returns a tuple of roots for t .(roots = (-b i sqrt( b2 - 4 . An overriding method for isRoot method with one real number argument that checks if a given number is one of the equation's root or not. Use get An overloading method for the str() operator that returns the equation I. Write a code to create objects/instances of the above-mentio Windows Windows
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
