Question
Who is the current supreme commander of Indian Defense
forces?Solution
The President of India is the supreme commander of the defense forces of India. He is the commander-in-chief of the armed forces of the country.
What is a "method" in the context of OOP?
In OOP, a blueprint for creating objects (a particular data structure), providing initial values for state (member variables or attributes), and impleme...
Which special method is automatically called when an object of a class is created, typically used for initializing the object's state?
How is data hiding primarily achieved in OOP?
Which OOP concept allows a class to inherit properties and behaviors from another class?
The ability of an object to take on many forms is known as:
The concept of showing only essential features of an object and hiding the complex implementation details is called:
The ability of an object to take on many forms, or the ability of a single interface to represent different underlying forms, is known as:
Which type of polymorphism is achieved through method overloading (where multiple methods have the same name but different parameters)?
The bundling of data (attributes) and methods (functions) that operate on the data into a single unit (class), and restricting direct access to some of ...