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 |
How would you stop a class from class from being derived or inherited.
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
Child cObj = new Parent() Wahts the output ?
What is the renewal class?
What is the oops and benefits of oops programming?
Which is the only operator in C++ which can be overloaded but NOT inherited?
What is function overloading and operator overloading?
create a c++ program that will accepts 9 inputs using 3 by 3 array.
What is the main feature of oop?
can we make game by using c
What is the importance of oop?
What is friend function?