Oop intro(1.2.4 e) Flashcards

1
Q

What is a paradigm?

A

a way of thinking
a change of paradigm is a change in the way you think

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

Programming languages in paradigms

A

different programming languages live in different paradigms some live in multiple

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

What are classes?

A

templates that define the behaviour

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

What are objects?

A

manifestations (instance) of a class

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

What are the two main aspects of classes?

A

attributes
methods

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

What are attributes?

A

what data is stored and how it is stored (similar to variables)

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

What are methods?

A

how the class behaves (similar to subroutines)

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

What should you do before coding a class when designing it?

A

draw a diagram

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

What does private attribute/method mean?

A

that the given attribute or method cannot be accessed from outside the class definition

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

What does public attribute/method mean?

A

that the given attribute or method can be accessed from outside

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