Skip to content
Snippets Groups Projects
Commit a9e41c80 authored by Mail Ladjali's avatar Mail Ladjali
Browse files

tpoo-05::exo-biblic

parent 1f59236f
Branches
No related tags found
No related merge requests found
No preview for this file type
File deleted
package tp05;
class Book2{
private String code;
public String title;
public String author;
public int publicationYear;
public Book(String code, String title, String author, int publicationYear){
this.code = code;
this.title = title;
this.author = author;
this.publicationYear = publicationYear;
}
public boolean equals(Object obj){
}
@Override
public String toString(){
return "(" this.code + ":" + this.title + ":" + this.author + ":" + this.publicationYear + ")";
}
}
\ No newline at end of file
package tp05;
public class Book2 extends ComicBook(String code, String title, String author, int publicationYear, String illustrator) {
Book2 ce = new Book2(new person)()
}
\ No newline at end of file
package tp05;
class Library{
public Book2 getBook2(String code){
return code;
}
public boolean addBook2(Book2 b){
}
public boolean removeBook2(String aCode){
}
public boolean removeBook2(Book2 b){
}
@Override
public String toString(){
return "Voici les livres disponibles dans la bibliothèque" +;
}
}
\ No newline at end of file
package tp05;
class UseLibrary{
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment