Friday, September 12, 2014

Changes 9/12/14

Java:

  • Fleshed out the T type test to support 2 separate data types for the two values, so it is defined with new T_Test<String, Integer>(); for example
  • Read about inheritance, and wrote a class testing how methods override each other.
  • Basically, the methods of a base class will be overridden by methods further down in the inheritance.  For example, if Person inherits from Thing, and both have a method called exist(), Person's exist method will override Thing's if the created object is a Person.

1 comment:

  1. A remember another high school CS teacher who used to explain to his students that this behavior is easy to remember if you compare it to teenagers - who inherit from their parents and yet are constantly overriding their methods ;-)

    ReplyDelete