Create a class author with attributes name and qualification. Also create a class publication with pname. From these classes derive a class book having attribute title and price. Each of the three classes should have a getdata() method to get their data from user. The classes should have putdata( ) method to display the data. Create instances of the class book in main.
This answer is restricted. Please login to view the answer of this question.
Login NowClick here to submit your answer.