- Becoming familiar with the term overloading
- Creating multiple constructors for a class.
- Creating multiple methods with the same name in a class.
Let's once more return to our Person class. It currently looks like this:
public class Person { private String name; private int age; private int height; private int weight; public Person[String name] { this.name = name; this.age = 0; this.weight = 0; this.height = 0; } public void printPerson[] { System.out.println[this.name + " is " + this.age + " years old"]; } public void growOlder[] { this.age++; } public boolean isAdult[] { if [this.age