In which cases you use override and new base?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between inheritance and polymorphism?

557


When not to use object oriented programming?

563


What are the 4 pillars of oop?

660


What is the difference between a constructor and a destructor?

601


What are the 3 pillars of oop?

607






Can main method override?

578


Why is polymorphism needed?

584


just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.

6477


What are the 4 main oop principles?

668


What are the 3 principles of oop?

608


What is class and example?

559


Which is better struts or spring?

610


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?

1399


Describe these concepts: Polymorphism, Inheritance and Abstraction.

604


Why oops is important?

597