People
Class Professor

java.lang.Object
  extended by People.Person
      extended by People.Professor

public class Professor
extends People.Person

Exemplo de subclasse - Professor herda de Person

Version:
0.1
Author:
Moacir

Field Summary
 
Fields inherited from class People.Person
birthday, birthyear
 
Constructor Summary
Professor(java.lang.String name, java.lang.String institute)
          Constructor 2 for objects of class Professor sets only the superclass atributes
Professor(java.lang.String name, java.lang.String institute, java.lang.String depto, int room)
          Constructor 1 for objects of class Professor
 
Method Summary
 java.lang.String getAddress()
           
 void setAddress(java.lang.String depto, java.lang.Integer room)
           
 void setBirth(int day, int year)
           
 
Methods inherited from class People.Person
getInstitute, getName, setInstitute, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Professor

public Professor(java.lang.String name,
                 java.lang.String institute)
Constructor 2 for objects of class Professor sets only the superclass atributes


Professor

public Professor(java.lang.String name,
                 java.lang.String institute,
                 java.lang.String depto,
                 int room)
Constructor 1 for objects of class Professor

Method Detail

getAddress

public java.lang.String getAddress()

setAddress

public void setAddress(java.lang.String depto,
                       java.lang.Integer room)

setBirth

public void setBirth(int day,
                     int year)