Difference between Overloading and Overriding?
Answer Posted / pratimakiran
Overloading doesn't block Inheritence from the
superclass where as Overriding blocks is Inheritence.
Overloading method has different Parameters but same name
whereas Overriding is just the implementation of method
define Base Class.
Overloading Two or more functions having same name but
different methods i.e arguements or return types.
Overriding means use same name function name
with same parameters of the base class in the derived class.
| Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
Can we use this pointer inside static member function?
What are shallow and deep copy?
Explain the different access specifiers for the class member in c++.
What apps are written in c++?
What is a set in c++?
How c functions prevents rework and therefore saves the programers time as wel as length of the code ?
What is a terminating character in c++?
What is the copy-and-swap idiom?
what is software cycle? What is a mission critical system ? What is the important aspect of a real-time system ? Explain the difference between microkernel and macro kernel. Give an example of microkernel.Why paging is used ? Which is the best page replacement algo and Why ? What is software life cycle ? How much time is spent usually in each phases and why Which one do U want to work if selected in Honeywell ? Which are the different types of testing ? What is a distributed system ? Some questions about CSP. Which languages do U know ? What are the differences between Pascal and C. questions from Compiler construction and Lisp. Which are the different computer architecture? What is the requirement in MIMD ? What is the difference between RISC and CISC processors ? Difference between loosely coupled and tightly coupled systems ? What is an open system?
What is meant by entry controlled loop? What all C++ loops are exit controlled?
What is #include iomanip?
Does std endl flush?
How does c++ sort work?
Explain deep copy?
Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?