Start learning 50% faster. Sign in now
Polymorphism allows one interface to represent multiple implementations . This can occur through method overriding , where a subclass provides a specific implementation for a method declared in its parent class, or method overloading , where methods have the same name but different parameters. For instance, an Animal class might have a sound() method overridden in subclasses like Dog or Cat to produce specific sounds. Polymorphism enables flexibility and extensibility, as the same method can be applied differently based on the object. Why Other Options Are Incorrect : 2. A class that inherits properties from another class : This is Inheritance , not Polymorphism. 3. A class that uses another class as a part of its definition : This describes Composition , where objects are combined to form complex systems. 4. A way to restrict access to certain class members : This is Encapsulation , not Polymorphism. 5. A way of dividing a complex system into smaller components : This is closer to the concept of Modularization , unrelated to Polymorphism.
Consider the following pairs: Ancient names Modern names (Rig vedic rivers)
1. Parushini : Jhelum
2. Vipasha : Beas
3. Askini : Che...
Which Chola Emperor's northern expedition temporarily disrupted the rule of Mahipala of the Pala dynasty?
Which pillar inscription records the achievements of Samudragupta, often referred to as the 'Napoleon of India'?
Dr B R Ambedkar Clashed with Mahatma Gandhi at the 2nd Round Table Conference demanding
National Anthem of India was first sung in the _________ session of Indian National Congress.
‘Dibrugarh’ is situated on the bank on the river _________
Consider the following events.
A) Battle of Plassey
B) Battle of Buxor
Sir Thomas Roe came as an official ambassador from King James I of England to which Mughal emperor's court?
Match the Following Important Congress Session with their respective Importance:
Place and Year Importance
(i)Nagpur,1920 A. Formation of...
Arrange the following important stone age sites from north to south:
1. Bagor
2. Bhimbetka
3. Gudiyam Caves
4. Renigunta
...