In which cases you use override and new base?

Answer Posted / swetcha

Use the new modifier to explicitly hide a member inherited
from a base class. To hide an inherited member, declare it
in the derived class using the same name, and modify it
with the new modifier.

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are properties in oop?

593


Why interface is used?

547


There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

1446


What polymorphism means?

613


What are the two different types of polymorphism?

664






Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.

1776


How do you define social class?

594


What are oops methods?

560


how to get the oracle certification? send me the answer

1655


Why do we use class?

623


What is multilevel inheritance in oop?

547


Templates mean

1581


IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?

1569


What is for loop and its syntax?

590


What is the difference between a mixin and inheritance?

511