Friday, July 12, 2013

Classes and Objects

Classes in Java have methods and fields.

A Class can extend an existing Class with new fields and methods.

A Class is Just a static blueprint and becomes dynamic when you use it to build an object or base an instance off of it - instantiation

JamesBondCar car1 = new JamesBondCar();
JamesBondCar car2 = new JamesBondCar();