Skip to content
Snippets Groups Projects
Book.java 369 B
Newer Older
Anders's avatar
jeh
Anders committed
package lecture5.objects;

public class Book {

    String title;
    String author;

    public Book(String title, String author){
        this.title = title;
        this.author = author;        
    }

    public String toString(){
        return String.format("%s - %s", this.title, this.author);
    }

    public boolean equals(Object obj){
        
    }
    
}