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.
Recently a Canadian city Markhan has named a street after which of the following indian celebrities?
Which day was declared by UNGA as World Youth Skills Day?
- Who has recently become the new Prime Minister of Belgium?
The famed Gond painting has received the prestigious Geographical Indication (GI) tag. It is a traditional art form of which Indian state?
Who has been elected as the new president of the Fédération Internationale de l'Automobile (FIA)?
Which award did ProPublica win in the 2024 Pulitzer Prizes for Journalism?
Power Finance Corporation aims to raise funds of up to _____through a public offering of non-convertible debentures (NCDs) in which the base issue size ...
According to the data provided by the government,which country has emerged as the largest investor in India with USD 17.2 billion investment in FY23?
Under the new ASCI influencer advertising guidelines, which professionals are required to disclose their certified expert status or practitioner credent...
What is the focus of the first international conference on Shared Buddhist Heritage?