why c++ is called OOPS?
waht is inherutance?
what is compiler?

Answer Posted / mittal

c++ is Object Oriented language.... it means in c++ we can
bind data and function together, to access that we need
Object.... Object is basically just Vehicle to take our
goods like our variable and data ....it basically makes like
thats way that it is totally based on Object thats why its
called OBJECT ORIENTED Lan...

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1403


Where You Can Use Interface in your Project

1420


Why do pointers exist?

655


What is the difference between abstraction and polymorphism?

606


What are the two different types of polymorphism?

666






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

3244


What is difference between oop and pop?

609


What is inheritance in simple words?

621


What are the 3 principles of oop?

611


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6136


Can main method override?

580


Why is oop better than procedural?

600


Why we use classes in oop?

573


write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.

1772


State what is encapsulation and friend function?

692