SDD - Object Orientated Programming Flashcards
What is encapsulation?
When a classes properties cannot be accessed directly, instead they must be accessed through the getter and setter methods.
Explain what instantiation is…
When an instance (an object) of a certain class is created
Explain what a super class and a subclass are…
- A super class is a class that a sub class has been derived from
- A sub class is class that has inherited all of the super class it was derived from’s properties and methods
What two things do things do objects and classes have?
Properties (Their data) and methods (What they do with that data, basically code)
What is a class?
A class is a template which contains properties (data) and methods (procedures). An object can instantiated from a class, and a sub-class can be derived from a class.
How do you instantiate an object from a class (Using Pseudocode)?
DECLARE example1 INITIALLY example (The values for the properties go in here, in respective order)
How do you call a method in an object (Using Pseudocode)?
example1.examplemethod (Parameters needed go in here)