Paper 2 Knolwedge Flashcards
What is a CLASS?
An extensible program-code-template for creating
objects, providing initial values for states (variables) and
implementations of behaviours
What is an OBJECT?
Refers to a particular instance of a class, where
the object can be a combination of variables or data
structures (called states) and functions, procedures or
methods (called behaviours)
What is DECLARATION?
A variable declaration with a variable name
with an object type
What is INSTANTIATION?
The process of turning a class to an object
The ‘new’ key word is used to create the
object
What is INITIALIZATION?
The ‘new’ keyword is followed by a call to a
constructor. This call initializes the new object
What are the DISADVANTAGES of OOP?
- Increased complexity for small problems
- Unsuited to particular classes of problems
What does STATIC mean?
The keyword ‘STATIC’ means you don’t need to create an object to use the method
It is used for a constant variable or method that is the same for every instance of a class