Algorithms and OOD (CSC 207 2013F) : Outlines
Held: Tuesday, 17 September 2013
We continue our exploration of object-oriented programming by examining Java's approach to objects, the building blocks of oop.
ClassCastExceptionif Java can't convert them.
instanceofoperation lets you determine whether an object can be cast.
toString()- convert to a string
equals()- determine if this object equals another object
hashCode()- convert to a relatively unique integer
clone()- make a copy
compareTo()- compare to another object of the same type
Copyright (c) 2013 Samuel A. Rebelsky.
This work is licensed under a Creative Commons Attribution 3.0 Unported License. To view a copy of this license, visit
or send a letter to Creative Commons, 543 Howard Street, 5th Floor,
San Francisco, California, 94105, USA.