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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

is an instance of a class which has physical existence.

A

Object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Objects have :

A

States and Behaviors

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A class can contain any of the following variable types :

A
  • Local Variable
  • Instance Variable
  • Class Variable
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Variables defined inside methods, constructors or blocks

A

Local Variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

variables within a class but outside any method.

A

Instance Variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

variables declared
within a class, outside any method, with the static
keyword.

A

Class Variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

There are three steps when creating an object from a
class:

A
  • Declaration
  • Instantiation
  • Initialization
How well did you know this?
1
Not at all
2
3
4
5
Perfectly