Object-Oriented Programming Flashcards

1
Q

Class

A

A blueprint for creating objects. Defines attributes (data) and methods (functions)

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

Object

A

An instance of a class. Contains actual data and can perform operations defined by its class

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

Inheritance

A

A mechanism where one class (subclass) inherits attributes and methods from another class (superclass)

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

Encapsulation

A

The bundling of data and methods that operate on that data within one unit, and restricting access to some of the object’s components

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

Polymorphism

A

The ability to present the same interface for different underlying data types

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