Class: Person Properties: firstName (String) -- first name of person
public class Person {
private String firstName;
}
Class: Dog Properties: name (String) -- name of the dog weight (int) -- weight of the dog favoriteFood (String) -- the dog's favorite food
public class Dog { private String name; private int weight; private String favoriteFood; }
Class: Point Properties: x (int) -- the x value of the point (abscissa) y (int) -- the y value of the point (ordinate)
public class Point { private int x; private int y; }