87:
The class hierarchy can be as deep as needed. The instance variables and methods are inherited down through the levels and can be redefined according to the requirement in a subclass. In general, the further down in the hierarchy a class appears, the more specialized its behavior. When a message is
46:(class is like a blueprint, the object is what is built from that blueprint) inter-relating the various classes by relationships such as "inherits", "extends", "is an abstraction of", "an interface definition". In
88:
sent to an object, it is passed up the inheritance tree starting from the class of the receiving object until a definition is found for the method. This process is called upcasting.
50:, a class is a template that defines the state and behavior common to objects of a certain kind. A class can be defined in terms of other classes.
155:
102:
43:
65:
47:
125:
39:
81:
61:
97:
8:
54:
35:
19:
This article is about the computer science concept. For the sociology concept, see
149:
77:
64:
and object interface standards defined by popular use, language designers (
20:
53:
The concept of class hierarchy in computer science is very similar to
73:
69:
120:
118:
80:) and standards committees for software design like the
115:
60:The relationships are specified in the science of
42:types, denoting objects as the instantiations of
147:
16:Classification of objects in programming
148:
57:, the classifications of species.
13:
14:
167:
1:
108:
156:Class (computer programming)
103:Composition over inheritance
7:
91:
48:object-oriented programming
10:
172:
18:
82:Object Management Group
38:is a classification of
126:"OOP: Class Hierarchy"
62:object-oriented design
98:Multiple inheritance
130:staff.fnwi.uva.nl
163:
140:
139:
137:
136:
122:
36:computer science
32:inheritance tree
171:
170:
166:
165:
164:
162:
161:
160:
146:
145:
144:
143:
134:
132:
124:
123:
116:
111:
94:
28:class hierarchy
24:
17:
12:
11:
5:
169:
159:
158:
142:
141:
113:
112:
110:
107:
106:
105:
100:
93:
90:
15:
9:
6:
4:
3:
2:
168:
157:
154:
153:
151:
131:
127:
121:
119:
114:
104:
101:
99:
96:
95:
89:
85:
83:
79:
78:Visual Prolog
75:
71:
67:
63:
58:
56:
51:
49:
45:
41:
37:
33:
29:
22:
133:. Retrieved
129:
86:
59:
52:
31:
27:
25:
21:Social class
135:2017-10-11
109:References
74:Smalltalk
150:Category
92:See also
55:taxonomy
44:classes
40:object
66:Java
70:C++
34:in
30:or
152::
128:.
117:^
84:.
76:,
72:,
68:,
26:A
138:.
23:.
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.