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

write a progrmm in c language take user interface generate table using for loop?

1575


Explain can the sizeof operator be used to tell the size of an array passed to a function?

597


Should I learn data structures in c or python?

583


What is extern c used for?

571


What's the difference between constant char *p and char * constant p?

659






How can I implement a delay, or time a users response, with sub-second resolution?

626


When is the “void” keyword used in a function?

840


An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode

609


Process by which one bit pattern in to another by bit wise operation is?

615


How to find a missed value, if you want to store 100 values in a 99 sized array?

820


How do shell structures work?

570


What does 3 periods mean in texting?

600


What is double pointer in c?

590


Write a simple code fragment that will check if a number is positive or negative.

709


What are categories used for in c?

569