OBJECT ORIENTED PROGRAMMING
IMPORTANT SHORT QUESTIONS
CLASS NOTES
ANSWER WITH EXAMPLE
, OBJECT ORIENTED PROGRAMMING
SHORT QUESTIONS
1. What is Object Oriented Programming (OOP)?
Object Oriented Programming (OOP) is a programming paradigm in which
programs are designed using objects and classes.
An object contains data (attributes) and functions (methods) that work
together.
OOP helps programmers write programs in a more secure, reusable, and
organized way.
Example:
A Car can be considered an object.
● Attributes of car:
○ Color
○ Model
○ Speed
● Functions of car:
○ Start()
○ Stop()
○ Brake()
Deep Features of OOP
1. Encapsulation
Wrapping data and functions into a single unit (class).
IMPORTANT SHORT QUESTIONS
CLASS NOTES
ANSWER WITH EXAMPLE
, OBJECT ORIENTED PROGRAMMING
SHORT QUESTIONS
1. What is Object Oriented Programming (OOP)?
Object Oriented Programming (OOP) is a programming paradigm in which
programs are designed using objects and classes.
An object contains data (attributes) and functions (methods) that work
together.
OOP helps programmers write programs in a more secure, reusable, and
organized way.
Example:
A Car can be considered an object.
● Attributes of car:
○ Color
○ Model
○ Speed
● Functions of car:
○ Start()
○ Stop()
○ Brake()
Deep Features of OOP
1. Encapsulation
Wrapping data and functions into a single unit (class).