diff --git a/src/.DS_Store b/src/.DS_Store index 966e759d4b1dcc5bcade46797b55c22d1e9d752c..07b7d1bec1546013598ce9f2d89ad1661d54332f 100644 Binary files a/src/.DS_Store and b/src/.DS_Store differ diff --git a/src/tp03/tp03_res.jar b/src/tp03/tp03_res.jar deleted file mode 100644 index dcda6fd9fe22eae67e564dfdf4edc35375ccb230..0000000000000000000000000000000000000000 Binary files a/src/tp03/tp03_res.jar and /dev/null differ diff --git a/src/tp05/Book2.java b/src/tp05/Book2.java new file mode 100644 index 0000000000000000000000000000000000000000..9c779d68dea75cb853c458f55ac12d0cb28025e7 --- /dev/null +++ b/src/tp05/Book2.java @@ -0,0 +1,26 @@ +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 diff --git a/src/tp05/ComicBook.java b/src/tp05/ComicBook.java new file mode 100644 index 0000000000000000000000000000000000000000..5c158571e8ef3ebe26e439836667933314098fac --- /dev/null +++ b/src/tp05/ComicBook.java @@ -0,0 +1,5 @@ +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 diff --git a/src/tp05/Library.java b/src/tp05/Library.java new file mode 100644 index 0000000000000000000000000000000000000000..d52b4db04c3b69b78c21c030cb787603a928b74a --- /dev/null +++ b/src/tp05/Library.java @@ -0,0 +1,23 @@ +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 diff --git a/src/tp05/UseLibrary.java b/src/tp05/UseLibrary.java new file mode 100644 index 0000000000000000000000000000000000000000..fa37016bb8b1e9885d17818b8dd31b6e6b43d91a --- /dev/null +++ b/src/tp05/UseLibrary.java @@ -0,0 +1,5 @@ +package tp05; + +class UseLibrary{ + +} \ No newline at end of file