Personal tools
You are here: Home → Comp 170 Introduction to OOP → Lab Materials → Lab7 → AuthorBook
Document Actions

AuthorBook

by Mit Patel — last modified 2006-03-02 03:54 PM

AuthorOfTheBookClass

Click here to get the file

Size 1 kB - File type text/plain

File contents

/**
 * Write a description of class BookAuthor here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class BookAuthor
{

    private String first;
    private String last;
    
    public void setFirst(String s) {
        first =s;
    }
    
    public void setLast(String s) {
        last =s;
    }
    
    public String getFirst() {
        return first;
    }
    
    public String getLast(){
        return last;
    }
    
    public String print(){
        return ("author is " +getFirst() + " " + getLast());
    }
   
}

« October 2027
Su Mo Tu We Th Fr Sa
12
3456789
10111213141516
17181920212223
24252627282930
31
 

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: