public class Book
{
// instance variables - replace the example below with your own
private string author;
private string title;
/**
* Constructor for objects of class Book
*/
public Book()
{
// initialise instance variables
author = bookAuthor;
title = bookTitle;
}
/**
* An example of a method - replace this comment with your own
*
* @param y a sample parameter for a method
* @return the sum of x and y
*/
public string getAuthor()
{
// put your code here
return author;
}
public string getWriter()
{
return title;
}
}