Head First: Object Oriented Flashcards

1
Q

what does UML stand for?

A

unified modeling language

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

why do we use UML?

A

it’s a language used to communicate just the details about your code and the application structure without getting details that aren’t necessary

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

what is inheritance?

A

it’s when a class inherits the behavior of another class and then can change it when needed

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

what is overriding?

A

it’s when a subclass changes the behavior of the superclass

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

what is polymorphism?

A

it allows subclass to stand in for the superclass

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

what is encapsulation?

A

it’s when you hide a part of your data from the rest of the application and limit the ability of other parts of your application to access the data

  • or when you move a certain behavior to another method or class to separate it from other parts of your code
  • or breaking your application into separate logical parts
  • or separate the parts of you code that stay the same from the parts that change
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what is the importance of encapsulation?

A

it protects the data from being used in an improper way like doing checks or doing certain operations

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

what are other names of encapsulation?

A

information hiding or separation of concerns

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

what is felixibiliy?

A

changes in your code that doesn’t make you rework all of it

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

what does encapsulation lead to?

A

more flexibility

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