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());
    }
   
}

« August 2022 »
Su Mo Tu We Th Fr Sa
123456
78910111213
14151617181920
21222324252627
28293031
 

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: