diff --git a/kodilla-intro/src/main/java/Book.java b/kodilla-intro/src/main/java/Book.java new file mode 100644 index 0000000..cf6ee07 --- /dev/null +++ b/kodilla-intro/src/main/java/Book.java @@ -0,0 +1,13 @@ +public class Book { + private String author; + private String title; + + private Book(String author, String title) { + this.author = author; + this.title = title; + } + + public static Book of(String author, String title) { + return new Book(author, title); + } +}