Professional Documents
Culture Documents
201 Assignment 1
201 Assignment 1
201 Assignment 1
String title;
String author;
String isbn;
Int pagecount;
Double price;
Public Book(String title, String author, String isbn, Int pagecount, Double price) {
this.title = title;
this.author = author;
this.isbn = isbn;
this.pagecount = pagecount;
this.price = price;
return title;
This.title = title;
return author;
This.author = author;
Return ISBN;
}
Public void setISBN(String isbn) {
This.isbn = isbn;
Return pagecount;
This.pagecount = pagecount;
Return price;
This.price = price;
book1.getTitle();
book1.getAuthor();
book1.getISBN();
book1.getpageCount();
book1.getPrice();
book2.getTitle();
book2.getAuthor();
book2.getISBN();
book2.getpageCount();
book3.getTitle();
book3.getAuthor();
book3.getISBN();
book3.getpageCount();
book3.getPrice();
String firstName;
String lastName;
Int age;
String gender;
this.firstName = firstName
this.lastName = lastName;
this.age = age;
this.gender = gender;
This.firstName = firstName;
return lastName;
This.lastName = lastName;
Return age;
This.age = age;
Return gender;
This.gender = gender;
person1.getfirstName();
person1.getlastName();
person1.getAge();
person1.getGender();
Person2.getfirstName();
Person2.getlastName();
Person2.getAge();
Person2.getGender();
Person3.getfirstName();
Person3.getlastName();
Person3.getAge();
Person3.getGender();