OOP Objects and Classes help
Hello I am totally new to Programming, I'm in my 2nd semester and I've just started with Object Oriented Programming. As a first assignment we have been asked to create a library type system.
Here is my assignment:
Write a main function that creates some Book, Reader as well as Librarian objects and performs borrow and return operations.
We were given 3 classes Book, Address and Person (this class consisting of two subclasses: Reader and Librarian).
That look like this respectively:
public class Book {
private String title, author, publisher, ISBN;
public Book(){
}
public Book(String title, String author, String publisher, String ISBN){
}
public String getTitle() {
return title;
}
public String getAuthor() {
return author;
}
public String getPublisher() {
return publisher;
}
public String getISBN() {
return ISBN;
}
public void setTitle(String title){
this.title=title;
}
public void setAuthor(String author){
this.author=author;
}
public void setPublisher(String publisher){
this.publisher=publisher;
}
public void setISBN(String ISBN){
this.ISBN=ISBN;
}
}
If you need the other classes too, then I will post them.
I stress I am a total beginner and have but one semester of experience in Java, so please please if you understand my question don't just give me a code or tell me that it is really easy, but some sort of explanation. I have no idea how I would even think to create a book from a main function somewhere!