Question
Which of the following statements best describes
polymorphism in object-oriented programming?Solution
Polymorphism is a core concept of Object-Oriented Programming (OOP) that allows objects to respond to the same method call in different ways based on their type. This is particularly useful in scenarios where a parent class defines a method, and child classes override this method to provide specific behavior. Polymorphism can occur in two forms:
- Compile-Time Polymorphism (Static) : Achieved using method overloading.
- Run-Time Polymorphism (Dynamic) : Achieved using method overriding, where the method to be invoked is determined during runtime.
Battle of Buxar was fought in which year?
The Indo Greeks were the first ruler in India who issued
The First Europeans arrived in India were :
In the Rigvedic period, the term 'Veknat' refers to what occupation?
The main events like Cripps mission and Quit India Resolution was held at the time period of _______ as the viceroy of India?
Consider the following statements:
1. Balban created a separate military department or diwan-i-arz.
2. Ariz-i-mamlik was the commander-inc...
The ancient Indian legal document Manusmriti was written in which language?
During which period did the Maurya Empire exist?
In the context of ancient Indian history, Gandhikas refer to
Consider the following statements in the context of the taxation system in Mahajanapada period:
1. The payment was made only in kind as the perio...