Section 12 Chapter 67 - Basic Concepts of OOP Flashcards

1
Q

Class

A

A template for an object that defines the attributes and methods of objects in that class

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

Instantiation

A

The creation of an object of a particular class

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

Object

A

An instance of a class

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

Reference variable

A

A variable that holds a pointer to where a particular object is stored

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

Encapsulation

A

The hiding of internal attributes and methods of an object. It also refers to the fact that an objects attributes are tied to that specific instance of the class and changing them will not affect attributes of other objects

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

Inheritance

A

A class can inherit from another class. The inheriting class will then be able to use all the methods and attributes of its parent class that have an appropriate scope (private will not be inherited, but protected and public will be)

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

Association

A

When two objects have a relation but there is no ownership or inheritance between them

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