Class (computer programming): Difference between revisions

Content deleted Content added
mNo edit summary
mNo edit summary
 
Line 7:
If the language supports [[Inheritance (object-oriented programming)|inheritance]], a class can be defined based on another class with all of its state and behavior plus additional state and behavior that further specializes the class. The specialized class is a ''sub-class'', and the class it is based on is its ''superclass''.
 
In purely object-oriented programming languages, such as [[Java | Java (programming language) | Java]] and [[C Sharp (programming language)|C#]], all classes might be part of an inheritance tree such that the root class is <code>Object</code>, meaning all objects instances are of <code>Object</code> or implicitly extend <code>Object</code>.
 
==Attributes==