OOP (2.4) Flashcards

1
Q

Attributes

A

Properties stored about objects

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

Methods

A

Things object can do

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

What happens during inheritance?

A

Subclass inherits all of its attributes and methods from superclass

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

Class

A

A blueprint for creating objects

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

How can methods or attributes of a public object be called?

A

Using dot notation

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

Setter

A

Special type of attribute that sets one of the attributes equal to specific value

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

Getter

A

Special type of attribute that obtains value of one of the attributes of object

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

Encapsulation

A

A way of making sure that each attribute can only be accessed/modified by methods that are set when defining class

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

Polymorphism

A

When a subclass alters its inherited methods by either overloading or overriding

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

Overloading

A

When a method defined in subclass has same name but different arguments to method defined in superclass

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

Overriding

A

When only a method’s implementation within subclass is changed

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