2079 2

Object Oriented Programming207910 marksAbstract classes and concrete classes

Differentiate between abstract class and concrete class.Write a program to create a class named 'Quadratic' that represents a function of the form f(x) = ax + bx +C, where x is a real variable and a, b, c are real constants. The class must satisfy the following requirements: a. A constructor should

Differentiate between abstract class and concrete class.Write a program to create a class named 'Quadratic' that represents a function of the form f(x) = ax + bx +C, where x is a real variable and a, b, c are real constants. The class must satisfy the following requirements: a. A constructor should be provided that takes the values of a, b and c as arguments. All three of these arguments should default to zero. b. A function that takes a single argument x return the value of f(x). c. All data members should be private.[2+8]

(a) Difference Between Abstract Class and Concrete Class Feature Abstract Class Concrete Class --------- Definition A class that cannot be instantiated directly and may contain pure virtual functions A class that can be instantiated directly and provides implementation for all its methods Instant...

Up nextExplain the chain of constructor and destructor between sub classes and super classes duri