Object Oriented Programming Flashcards

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

What is UML?

A

Unified Modeling Language. UML helps you communicate the structure of your application to customers, managers, or other developers

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

What is a class diagram?

A

A class diagram provides an overview of your class, including variables and methods.

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

What is Inheritance?

A

Inheritance is when one class extends another class to reuse or build upon the inherited class’s behavior.

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

What is a super class?

A

A super class is the class that is being inherited from.

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

What is a sub class?

A

A sub class is a class that is inheriting from another class.

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

What is Polymorphism?

A

Polymorphism occurs when one class can stand in for another class.

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

What is Encapsulation?

A

Encapsulation is when you separate or hide one part of your code from the rest of the code.

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

What is an Is-A relationship?

A

Is-A refers to inheritance. For example a dog is a pet.

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

What is a Has-A relationship?

A

Has-A refers to composition or aggregation. For example, a dog has a nose.

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

What is delegation?

A

Delegation is when an object needs to perform a certain task. Instead of doing that task directly, it asks another object to handle that task.

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