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 is the full form of getch?

580


process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

1887


what do u mean by Direct access files? then can u explain about Direct Access Files?

1637


What is the difference between ‘g’ and “g” in C?

2518


What is return in c programming?

507






Is it possible to have a function as a parameter in another function?

594


What is scope rule of function in c?

545


What are linked lists in c?

647


Explain #pragma statements.

600


One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.

2155


How can I find the modification date and time of a file?

598


What is difference between stdio h and conio h?

880


which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +

1176


What is volatile variable in c with example?

581


how do you programme Carrier Sense Multiple Access

1510