OOP Flashcards
(5 cards)
1
Q
3 sections of a class
A
names, attributes, methods
2
Q
define class
A
blueprint/template used to define attributes and methods of an object
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
4
Q
what is a constructor
A
special method within class that runs when an object of class type is created
5
Q
What is an object
A
Instance of a class