Class Person

java.lang.Object
edu.pdx.cs410J.lang.Person

public class Person extends Object
This class demonstrates constructors, the toString method, and instance fields.
  • Constructor Details

    • Person

      public Person(String name, double shoeSize)
      Creates a new person
  • Method Details

    • shoeSize

      public double shoeSize()
      Returns this Person's shoe size.
    • toString

      public String toString()
      Returns a String represenation of this person
      Overrides:
      toString in class Object
    • main

      public static void main(String[] args)
      Program that creates and prints a Person