Classes Flashcards

1
Q

Define

Class

A

Class is a blueprint or template from which objects are created. Consisting of attributes and methods

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

Define

Object

A

An instance of a class, consisting of attributes and methods

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

Define

Methods

A

A procedure or function associated with an object

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

Define

Attributes

A

The data associated with an object

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

Define

Inheritance

A

Where a sub-class retains the methods and attributes of its parent class as well as having its own (unique) factors

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

Define

Polymorphism

A

When sublasses redefine a method or attribute originally inherited from a superclass

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