OOP definitions Flashcards

1
Q

What is the definition of instantiation?

A

The process of creating an object from a class template.

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

What is the definition of ensapsulation?

A

The bundling of data with the methods that operate on adn restrict direct access to it.

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

The advantage of encapsulation in OOP?

A

It helps keep data related to an object safe - it can’t accidentally be altered by another part of the program without using the code provided in the methods, keeping the programmer in control.

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