
Long questions with answers for this topic
A class is a blueprint that defines data members and member functions.
An object is an instance of a class that has actual memory.
Encapsulation is wrapping data and functions into a single unit (class).
A constructor is a special member function that initializes an object automatically.
A destructor is a special member function that runs when an object is destroyed to clean resources.
The scope resolution operator ::.
OOP models programs using objects that combine data and behaviour. Advantages (any three):
Hence OOP helps build maintainable software.
Sign in to access the all questions and answers
It's free and takes just 5 seconds