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 is polymorphism and example?

581


Can abstract class have normal methods?

598


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1395


what's the basic's in dot net

1730


Write a program to reverse a string using recursive function?

1778






Can static class have constructor?

571


what is the 3 types of system development life cycle

2420


What is inheritance in oop?

589


What are objects in oop?

598


What is overloading and its types?

600


Can we create object of abstract class?

565


What are the two different types of polymorphism?

662


Why is oop useful?

588


How many human genes are polymorphic?

558


Get me a number puzzle game-program

1680