Hotspots: Admin Pages | Turn-in Site |
Current Links: Cases Final Project Summer 2007
Fall2002 Midterm Review: OO Theory
What is a class?
What is an instance?
a particular object based on an object definition (class).
ex. this red bouncy ball that I hold in my hand.
2. What is the difference between a class and instance method?
Class method can be used without instantiating the class. An instance method must be invoked on a particular object (uses data particular to that instance).
3. What is the difference between a class and instance variable?
Class variable is particular to the class of object and does not need an instance of the object to be accessed (all balls are: round). Instance variable is particular to a specific instance (this ball has a diameter of: 3").
Dude, you need to let me have that bouncy ball ;)
Link to this Page