Question: please give the answer in python coding 2. Create a class Publication with public member variables publisher, title and price with the following specifications: .Addinit()

 please give the answer in python coding 2. Create a class

please give the answer in python coding

2. Create a class Publication with public member variables publisher, title and price with the following specifications: .Addinit() method of the class that initialises string member variables to empty strings (18) and numeric values to 0 Add two more methods to the class: populate () o and display () . method is used to assign values to the member variables of the The populate () class. o The display) method is used to display the member variables of the class. . Derive a class Book from Publication. o The class Book has two public member variables of its own: ISBN and authorname o Define the init) method for the class Book that initialises string member variables to empty strings and numeric values to 0, and also override the populate) and display) methods of the base class. o Create an instance bookobj of the class Book in a main program. The main program should then prompt the user to enter the following values: PublisherRomfort Title: Computing for beginners Price: 280 ISBN 123456 Author Name: Jo Mahlangu The above attributes should be assigned to the instance bookObj using its populate () method. o Then display all these attributes back to the console using the display) method of the instance bookobj

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!