OOP

From StudyWiki

Jump to: navigation, search


Classes

Class
An object template. The class dictates what the object can and cannot do. It has data (attributes) and operations (methods) to manipulate it.
Method (or Message)
an action available to an object. Class methods deal with all the objects of that class. Instance methods deal with a specific object in that class.
Attributes
Data values associated to an object. Class attributes are shared by all instances of that class, while instance attributes are only available to a specific instance. Attributes can be variables or constants or other classes.


Inheritance

Superclass (or Ancestor, Parent Class, or Base Class)
A class from which subclasses are derived using inheritance.
Subclass (or Descendant, Child Class, or Derived Class)
A class that inherits methods and attributes from its superclass in addition to its own.