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
What are the three parts of a simple empty class?
What is inheritance write a program to show use of inheritance?
What is difference between polymorphism and inheritance?
i got a backdoor offer in process global,Bangalore..Can i work with it?
What is meant by oops concept?
explain sub-type and sub class? atleast u have differ it into 4 points?
What is stream in oop?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
What is coupling in oops?
What is destructor oops?
What are two types of polymorphism?
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
How do you achieve polymorphism?
What are functions in oop?
Why oops is important?