OOP Flashcards

(5 cards)

1
Q

3 sections of a class

A

names, attributes, methods

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

define class

A

blueprint/template used to define attributes and methods of an object

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

what is instantiation

A

process of creating an object from a class template

use keyword ‘new’

each new copy has own set of attributes/methods

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

what is a constructor

A

special method within class that runs when an object of class type is created

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

What is an object

A

Instance of a class

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