Skip to content

Commit

Permalink
Book class
Browse files Browse the repository at this point in the history
  • Loading branch information
kacper-cholewinski committed Nov 15, 2024
1 parent 2448dfa commit 521f2ed
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions kodilla-intro/src/main/java/Book.java
Original file line number Diff line number Diff line change
@@ -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);
}
}

0 comments on commit 521f2ed

Please sign in to comment.