different between overloading and overriding

Answer Posted / pugalarasu

Overloading:
Same function name but different arguments
Eg:
A(int i);
A(int i,float f);

Overriding:
refers to functions that have the same signature as a
virtual function in the base class:
class B {
virtual void V();
};

class D : public B {
viod V();
};

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the parts of c program?

836


Explain bitwise shift operators?

898


What is the difference between far and near ?

915


Does sprintf put null character?

783


What is n in c?

788


What is the hardest programming language?

896


A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile

850


hi, which software companys will take,if d candidate's % is jst 55%?

1854


Explain the difference between malloc() and calloc() in c?

795


Why c is known as a mother language?

834


Can a variable be both constant and volatile?

801


What is the difference between single charater constant and string constant?

844


How can I pad a string to a known length?

781


When should you use a type cast?

798


What happens if header file is included twice?

875