Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Book
- {
- // Variables
- private String _title;
- // Constructor
- public Book(String title)
- {
- _title = title;
- }
- // Getters and Setters.
- public String getTitle()
- {
- return _title;
- }
- public void setTitle(String title)
- {
- _title = title;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement