What are the OOPS concepts?

Answer Posted / ashish

OOPS is the object oriented programming,which connect object to the real world entity. basically it depends on 4 concept.
1. Abstraction.
2. Encapsulation.
3. Polymorphism.
4. Inheritance.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

2. Give the different notations for the class.\

1594


What is meant by multiple inheritance?

740


Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?

4244


What are the features of oop?

641


#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.

3255






what type of questions

1697


What is polymorphism and its types?

599


What is a class in oop?

606


What is the purpose of polymorphism?

683


What is purpose of inheritance?

645


How do you answer polymorphism?

577


What is the oops and benefits of oops programming?

555


What makes a language oop?

598


can inline function declare in private part of class?

3660


What are the benefits of oop?

607