What are the OOPS concepts?

Answer Posted / ramesh

OOPs concepts are
1)object
2)class
3)encapsulation
4)abstraction
5)polymorphism
6)inheritance
7)message passing
8)dynamic binding
These all are partially supported by c++,java supports
all the above features

Is This Answer Correct ?    438 Yes 76 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }

1991


What is polymorphism and its types?

599


What are the three main types of variables?

602


What is difference between pop and oop?

609


How can you overcome the diamond problem in inheritance?

770






What is the renewal class?

2170


What is difference between abstraction and encapsulation?

594


Why do we use polymorphism?

579


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

3256


Advantage and disadvantage of routing in telecom sector

790


What is polymorphism used for?

575


What are the 4 pillars of oop?

674


What are properties in oop?

611


What is oops and its features?

591


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

637