Quantcast
Channel: Programmers Heaven Forums RSS Feed
Viewing all articles
Browse latest Browse all 2703

name field observer and display methods

$
0
0
Please Help im new to java only started 3 wks ago! I have to Design a class which represents a Sports Person It is to have a name field and observer and display methods.
And design an Athlete subclass of the sports person class. it is to have the following extra fields, event which indicates that athletes event, a field representing their Personal Best and the time for their latest run.

This is all i have

public class SportsPerson

{
//main method
public static void main (String [] args)
{
system.out.println("what Athlete do you waant to see");
}
}

Viewing all articles
Browse latest Browse all 2703

Trending Articles