Reply
Sun 11 Dec, 2022 08:37 pm
Create a class called Book defines attrributes Title, Author and Year. Add a method called Display() that outputs the Title and Author.
Demonstrate creating an object of type Book. Set some values to the attributes and call the Display() method that you created.