Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Book {
- private String title;
- private int copies;
- //Costruttore
- public Book() {
- }
- public Book(String titolo, int copie) {
- this.title = titolo;
- this.copies = copie;
- }
- //Getter
- public String getTitle() {
- return this.title;
- }
- public int getCopies() {
- return this.copies;
- }
- //Setter
- public void setTitle(String titolo) {
- this.title = titolo;
- }
- public void setCopies(int copie) {
- this.copies = copie;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement