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.
2
Q
Class
A
Defines the properties and behaviours of an object.
Objects are constructed from their classes, and these objects are called instances.
3
Q
The Need for Classes
A
Reusability
Custom Classes for Specific Needs
Modularity
Data Encapsulation
Inheritance
4
Q
Name of a Class
A
Must be unique
Must be PaschalCase
5
Q
A