Module 3 Flashcards
1
Q
- can be defined as a template/blue print that describes the behaviors/states that object of its type support.
- A type or classification to which all similar objects belong.
A
Class
2
Q
is an instance of a class which has physical existence.
A
Object
3
Q
Objects have :
A
States and Behaviors
4
Q
A class can contain any of the following variable types :
A
- Local Variable
- Instance Variable
- Class Variable
5
Q
Variables defined inside methods, constructors or blocks
A
Local Variable
6
Q
variables within a class but outside any method.
A
Instance Variable
7
Q
variables declared
within a class, outside any method, with the static
keyword.
A
Class Variable
8
Q
There are three steps when creating an object from a
class:
A
- Declaration
- Instantiation
- Initialization