Package edu.ntnu.idatt1002.k1g4.people
Class Person
java.lang.Object
edu.ntnu.idatt1002.k1g4.people.Person
- Direct Known Subclasses:
Admin
,Competitor
,Referee
The abstract class Person is a superclass for
competitor, admin and referee.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Person
Instantiates a new Person- Parameters:
name
- the name of the Person.- Throws:
IllegalArgumentException
-
-
Method Details
-
getId
public int getId()Gets the person's id.- Returns:
- the id of the person.
-
getName
Gets name of the person.- Returns:
- the name of the person.
-