Object Oriented Languages Flashcards
1
Q
Class Definition
A
Describes the kind of data required to be used - The instance variables Describes what the class will be able to do - It's methods
2
Q
Methods
A
Describes what the class will be able to do
3
Q
Instance Variables
A
The kind of data to be used by the class
4
Q
Class
A
Template for an object
Once defined any number of objects can be created from it
5
Q
Instantiation
A
Creating a new object from a class
6
Q
Polymorphism
A
The ability of a method inside a sub class to be redefined and override a super class method
7
Q
Inheritance
A
When the sub class inherits all of the methods and attributes from the parent class
8
Q
Encapsulation
A
The ability to restrict access to attributes, operations and classes A class attribute might only be available to that class and so out with this class the attribute can only be used through use of that classes methods
9
Q
The difference between a class and an object
A
Class is a template which defines the methods and attributes
An object is an instance of a class