Difference between Overloading and Overriding?
Answer Posted / shivanand
The main difference between overloading and overriding is
that in overloading we can use same function name with
different parameters for multiple times for different tasks
with on a class.
and overriding means we can use same name fiunction name
with same parameters of the base class in the derived class.
this is also called as reusability of code in the programme.
Is This Answer Correct ? | 312 Yes | 67 No |
Post New Answer View All Answers
Which is not an ANSII C++ function a) sin() b) tmpnam() c) kbhit()
What is a modifier in c++?
Discuss the effects occur, after an exception thrown by a member function is unspecified by an exception specification?
How would you use the functions sin(), pow(), sqrt()?
What is time_t c++?
I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.
Is it possible for a member function to delete the pointer, named this?
What is the prototype of printf function?
What is the latest c++ version?
How do you show the declaration of a virtual constructor?
write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.
Can java be faster than c++?
What is ios :: in in c++?
Explain the use of vtable.
What is the difference between a baller and a reference in C++?