Question
Which of the following is the correct definition of
'polymorphism' in Object-Oriented Programming?Solution
Polymorphism (Greek: "many forms") allows objects of different classes to be treated as objects of a common superclass, with each responding differently to the same method. Two types: Compile-time (method overloading) and Runtime (method overriding). Example: a draw() method behaves differently for Circle, Square, and Triangle objects. The other options describe: A = multiple inheritance, C = encapsulation, D = instantiation, E = type casting.
Which Indian peacekeepers will be honoured with the U.N.'s Dag Hammarskjold medal for their supreme sacrifice in the line of duty?
What was the trade deficit of India with China in the fiscal year 2023-24?
What was the growth in core sector output in May 2025, the lowest in nine months?Â
Which two national parks scored the highest in the Management Effectiveness Evaluation (MEE) 2020–25?
Which dignitary inaugurated the 'Saushrutam 2024' seminar?
Which country became the 21st nation to adopt the euro nearly 20 years after joining the European Union?
What is the name of the new deep-water dogfish shark species discovered in Kerala?
With reference to Non-Banking Financial Company (NBFC), consider the following statements:
       I.           NBFC cannot ac...
Which rank of State-level police officers has been granted access to NATGRID?
Which institution will back the Asian Development Bank's climate-related lending with sovereign guarantees?