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 meant by multiple inheritance?

744


Can destructor be overloaded?

603


What is oops?what is its use in software engineering?

562


Please send ford technologies placement paper 2 my mail id

1660


What is the real time example of encapsulation?

602






Is oop better than procedural?

582


Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

1627


What is the diamond problem in inheritance?

586


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?

1401


Can we create object of interface?

611


How do you achieve polymorphism?

622


What is balance factor?

589


What is for loop and its syntax?

602


What is polymorphism and example?

595


What is abstraction encapsulation?

665