Answer Posted / r.r.bharti
It is an error to use both new and override on the same
member, as the two modifiers have mutually exclusive
meanings. Using new creates a new member with the same name
and causes the original member to become hidden, while
override extends the implementation for an inherited member.
Using the new modifier in a declaration that does not hide
an inherited member generates a warning.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
When not to use object oriented programming?
Can an interface inherit a class?
What is a class and object?
Get me an image implementation program.
What is an example of genetic polymorphism?
What is purpose of inheritance?
What do you mean by Encapsulation?
What is the difference between procedural programming and oops?
What exactly is polymorphism?
What is methods in oop?
Write a c++ program to display pass and fail for three student using static member function
What are oops functions?
Why is static class not inherited?
What is an interface in oop?
What is encapsulation in oop?