Difference between over loading and over ridding?

Answer Posted / amit,mumbai

Overloading means when we write diffrent fun. With the Same name & with diffrent singnature then it is called overloading . Overiding means both base & derived class has same name.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How oops is better than procedural?

860


When not to use object oriented programming?

810


if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?

3157


Are polymorphisms mutations?

931


• What are the desirable attributes for memory managment?

1989


What is encapsulation and abstraction? How are they implemented in C++?

898


#include #include #include #include void insert(struct btreenode **, int); void inorder(struct btreenode *); struct btreenode { struct btreenode *leftchild; struct btreenode *rightchild; int data; }; main() { struct btreenode *bt; bt=(struct btreenode *)NULL; int req,i=1,num; clrscr(); printf("Enter number of nodes"); scanf("%d",&req); while(i<=req) { printf("Enter element"); scanf("%d",&num); insert(&bt,num); i++; } inorder(bt); } void insert(struct btreenode **sr, int num) { if(*sr==NULL) { *sr=(struct btreenode *)malloc (sizeof(struct btreenode)); (*sr)->leftchild=(struct btreenode *)NULL; (*sr)->rightchild=(struct btreenode *)NULL; (*sr)->data=num; return; } else { if(num < (*sr)->data) insert(&(*sr)->leftchild,num); else insert(&(*sr)->rightchild,num); } return; } void inorder(struct btreenode *sr) { if(sr!=(struct btreenode *)NULL) { inorder(sr->leftchild); printf("\n %d",sr->data); inorder(sr->rightchild); } else return; } please Modify the given program and add two methods for post order and pre order traversals.

3539


Advantage and disadvantage of routing in telecom sector

1065


What does no cap mean?

832


Please send ford technologies placement paper 2 my mail id

1878


Whats oop mean?

820


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

3873


write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).

1958


which feature are not hold visual basic of oop?

1977


How do you define a class in oop?

891