In which cases you use override and new base?
Answers were Sorted based on User's Feedback
Answer / naveen goud
It is used to ovveride superclass method.Suppose in super
calss we had a method getEmployee() in the subclass am
overriding it and am giving the new implementation.Means am
just giving new implementation instead of using the same
implementation.
| Is This Answer Correct ? | 0 Yes | 0 No |
c++ provides classes...and classes do what we want but why then strcut are used...if we say data hiding... it is also provided by c++ in structs then why to prefer clasess
What is memory leak and memory corruption?
explain sub-type and sub class? atleast u have differ it into 4 points?
How is class defined?
143.what is oops principles?
What is function overloading and operator overloading?
What is the difference between Home and $Home?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
Can anyone please explain runtime polymorphism with a real time example??at what ciscumstances we go for it??
What does sksksk mean in text slang?
Which is the only operator in C++ which can be overloaded but NOT inherited?
Why do while loop is used?