Question
In C++, to achieve runtime polymorphism, a base class
method must be declared with which keyword?Solution
In C++, for a method to be overridden polymorphically (i.e., for dynamic dispatch to occur), the base class method must be declared as virtual. If it's not virtual, the method call will be resolved at compile time based on the pointer/reference type, not the actual object type.
Which city hosted the World Telecommunication Standardization Assembly (WTSA) 2024 for the first time in India and the Asia-Pacific?
Among the following which is the State Tree of Rajasthan?
Recently Government of India, World Bank and a state government signed an agreement of $120 million to improve access to water supply. Name the state:
मानव शरीर की कौन सी हड्डी सबसे लंबी होती है ?
Which of the following can be a scheduled bank?
In secret code language, 'HOTEL' is coded as 300. What will be the code for 'BORE' in the same code?
1. Who among the following was the founder of India's first girl's school in Pune, which was set up long back in 1848?
World Health Day is celebrated every year on __________.
When was the term "Uttarakhand" used for the first time in Uttar Pradesh administrative records?
Himachal Pradesh state celebrated its 53rd Statehood Day on which of the following days?