Abstract class
From CSSEMediaWiki
(Difference between revisions)
m (Reverted edits by Ebybymic (Talk); changed back to last version by Matthew Harward) |
|||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
Any class that has abstract method declarations or any class inheriting from an abstract class without supplying an implementation for every abstract method in the super-class. | Any class that has abstract method declarations or any class inheriting from an abstract class without supplying an implementation for every abstract method in the super-class. | ||
+ | |||
+ | Objects of an abstract class cannot be instantiated. Abstract classes are commonly used in inheritance hierarchies. | ||
+ | |||
+ | == See Also == | ||
+ | * [[Avoid concrete base classes]] | ||
+ | * [[The top of the class hierarchy should be abstract]] | ||
+ | * [[Superclass]] | ||
{{Nomenclature}} | {{Nomenclature}} | ||
[[Category: Nomenclature]] | [[Category: Nomenclature]] |
Latest revision as of 03:08, 25 November 2010
Any class that has abstract method declarations or any class inheriting from an abstract class without supplying an implementation for every abstract method in the super-class.
Objects of an abstract class cannot be instantiated. Abstract classes are commonly used in inheritance hierarchies.
See Also
Nomenclature | |
---|---|
Techniques: Abstraction | Aggregation versus Composition | Association versus Dependency | Coupling | Encapsulation | Information hiding | Inheritance | Multiple Inheritance | Overloading | Polymorphism
Features: Abstract class | Class versus Object | Component versus Module | Instance | Interface | Method | Package versus Namespace | Superclass | Subclass |