Professional Documents
Culture Documents
Q2) Inheritance
1- Create a super class named LibraryItem
a. Attributes: title: String, author: String
b. Constructor with two arguments/parameters (title,author)
c. toString method to return a string with attributes values
Note: toString method in sub classes must call the toString method from the supper
class.