Start learning 50% faster. Sign in now
Polymorphism in OOP refers to the ability of a function, method, or object to take on multiple forms. This characteristic allows developers to design interfaces or methods that can perform different tasks based on context. 1. Method Overloading: One of the primary examples of polymorphism is method overloading, where multiple methods share the same name but differ in argument types or counts. 2. Dynamic Behavior: Polymorphism also enables dynamic method invocation at runtime, allowing a subclass to provide a specific implementation for a method defined in its superclass. 3. Extensibility: By allowing objects to process different behaviors through a unified interface, polymorphism enhances code flexibility and scalability. Why Other Options Are Incorrect: • B) A class inheriting properties: This describes inheritance, not polymorphism. • C) Combining multiple objects: This relates to composition, which involves creating a complex object from simpler ones. • D) Restricting access: This refers to encapsulation, which controls data accessibility within a class. • E) Relationships between objects: This describes association or aggregation, not polymorphism.
Buddha delivered his first sermon which is called ______, at Sarnath to his five disciples.
Which savings scheme offers the highest interest rate of 8.2%?
Who is the writer of the book “New-age Technology and Industrial Revolution 4.0” which was launched by the Vice President M Venkaiah Naidu?
What is the current market capitalization of the Government e-Marketplace (GeM)?
In which field did the Late Ved Prakash Nanda make significant contributions?
According to Brand Finance, a brand valuation and strategy consultancy, which of the following was ranked as India’s second most valuable brand?
National Logistics Policy aim to bring down India’s cost of logistics operations from 13-14% of gross domestic product to single digit by which year? ...
Who is the ex-officio Chairman of the Rajya Sabha?
Chambal river is the tributary of which of the following rivers?
Which traditional craft in the Godavari region of Andhra Pradesh received the Geographical Indications (GI) tag?