User talk:Vinaykumarporandla

1. (Inheritance) Create a person class that has a data member name of string, default constructor, a user-defined constructor that sets initial value. Add set and get function to it. After that derive a student class from person class that has a new data member of major of string data type and set and get major functions. Derive faculty class that has new data members of department, constructor, and set and get functions. Finally create a student object and a faculty object. Set and display the information of these two objects. 2. (Abstract classes and pure virtual functions) Create an abstract class account that has a data member of balance, a user-defined constructor of one parameter, a get balance member function, and two pure virtual functions withdraw and deposit. Next Derive a saving account that has a new data member of interest rate and implements withdraw and deposit functions. Derive a checking account that implements withdraw and deposit functions. After that create a saving account and a checking account with initial balance and do some transactions.

please i need solutions for above questions.