Define a class called Library with the following description :
Instance variables/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 the 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.