define a class called library with the following description : instance variable / data members int acc _no :stores the acesssion number of books. string title :stores title of book string author stores the name of authour
Answers
Answered by
3
Answer:
public class Library
{
int acc_no;
String title;
String author;
public Library(int acc_no, String title, String author)
{
super();
this.acc_no = acc_no;
this.title = title;
this.author = author;
}
public int getAcc_no()
{
return acc_no;
}
public void setAcc_no(int acc_no)
{
this.acc_no = acc_no;
}
public String getTitle()
{
return title;
}
public void setTitle(String title)
{
this.title = title;
}
public String getAuthor()
{
return author;
}
public void setAuthor(String author)
{
this.author = author;
}
}
Similar questions