is java purely oop Language?

Answer Posted / prashant

java is a not oopl

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can private class be inherited?

886


Why is encapsulation used?

754


Why oops is important?

779


How do you use inheritance in unity?

791


Templates mean

1818


what is the drawback of classical methods in oops?

3104


How do you define a class in oop?

843


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

3506


Can you inherit a private class?

833


Whats oop mean?

777


What is the difference between static polymorphism and dynamic polymorphism?

836


Why is it so that we can have virtual constructors but we cannot have virtual destructors?

4318


Write a program to reverse a string using recursive function?

2017


What are oops methods?

747


• What are the desirable attributes for memory managment?

1936