Define a class called Library with the following description : [15 MARKS] [2012]
Instance variable/data members :
int acc_num - stores the accession number of the book
String title - stores the title of the book
String author - stores the name of the author
Member methods :
(i) void input() - to input and store the accession number, title and author.
(ii) void compute() - to accept the number of days late calculate and display the fine charged at the rate of Rs 2 per day
(iii) void display() - to display the details in the following format :
Accession Number Title Author
Write a main method to create an object of the class and call the above member methods.