Classes Flashcards
1
Q
Define
Class
A
Class is a blueprint or template from which objects are created. Consisting of attributes and methods
2
Q
Define
Object
A
An instance of a class, consisting of attributes and methods
3
Q
Define
Methods
A
A procedure or function associated with an object
4
Q
Define
Attributes
A
The data associated with an object
5
Q
Define
Inheritance
A
Where a sub-class retains the methods and attributes of its parent class as well as having its own (unique) factors
6
Q
Define
Polymorphism
A
When sublasses redefine a method or attribute originally inherited from a superclass