OOP Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What does OOP stand for?

A

Object oriented programming is a programming paradigm that uses objects which have attributes and behaviors

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

What is a class?

A

Templates used to define objects

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

What are attributes?

A

Variables contained within and associated to an object

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

What is an object?

A

An instance of a class

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

What are the 4 main principles of OOP?

A

Encapsulation, inheritance, polymorphism, and abstraction.

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

What is encapsulation

A

The practice of keeping an object private making them only accessible from inside the class

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

What is polymorphism?

A

Polymorphism is the ability for a single method or operator to work with multiple types of data.

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

What is inheritance?

A

Inheritance is the ability for one class to inherit properties and methods from a parent class.

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

What is abstraction?

A

Abstraction is the practice of only exposing the necessary information about an object and hiding the implementation details, allowing for a simpler and more flexible interface.

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