Difference between revisions of "Class"

From GNUstepWiki
Jump to navigation Jump to search
(Added to category Objective-C)
 
(One intermediate revision by the same user not shown)
Line 11: Line 11:
 
== Superclass ==
 
== Superclass ==
  
A [[class]] that's one step above another [[class]] in the inheritance hierarchy -- the [[class]] through which a [[subclass]] inherits [[method|methods]] and [[instance_variable|instance variables]].
+
A class that's one step above another class in the inheritance hierarchy -- the class through which a subclass inherits [[method|methods]] and [[instance_variable|instance variables]].
 +
 
 +
 
 +
[[Category:Objective-C]]

Latest revision as of 09:44, 21 June 2006

A class can be seen as a prototype for a particular kind of object. A class definition declares instance variables and defines methods for all members of the class. Objects that have the same types of instance variables and have access to the same methods belong to the same class.

Subclass

Any class that's one step below another class in the inheritance hierarchy.

Occasionally the more general interpretation of subclass would be: any class that inherits from another class.

Sometimes to subclass is used to describe the process of defining a subclass of another class.

Superclass

A class that's one step above another class in the inheritance hierarchy -- the class through which a subclass inherits methods and instance variables.