
Consider the following UML and class description:
Class Book :
• Attributes:
* ISBN: an integer representing the isbn of the book.
* title: a string representing the title of the book.
* type: a character representing the type of the book (‘N’: Novel, ‘E’: Education, ‘C’: Children)
• Methods:
* Book (isbn:int, tit:String, t:char): a constructor with parameters.
* tosString(): A method that returns a string representation of the book in the following format:
ISBN_title is a Novel/Education/Children book
InputOutputInterface
<<interface>>
name:String, oy:int, size:int)
filename:String, type:char)
isbn:int, tit:String, t:char)
KING SAUD UNIVERSITY!
COLLEGE OF COMPUTER AND INFORMATION SCIENCES
Computer Science Department!
II Programming to Introduction 113: CSC!