Lecture 10 - Object-Oriented Programming Flashcards

1
Q

Objects

A

Objects are similar to real-world objects like car.

Car can have ATTRIBUTES such as colour, make.
Car can have BEHAVIOURS such as accelerating, braking.

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

Class

A

Defines the properties and behaviours of an object.

Objects are constructed from their classes, and these objects are called instances.

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

The Need for Classes

A

Reusability
Custom Classes for Specific Needs
Modularity
Data Encapsulation
Inheritance

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

Name of a Class

A

Must be unique

Must be PaschalCase

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