Tell me real world example of polymorphism and encapsulation .
Answer Posted / sharuq
polymorphism..
take a boy. at home he is a son and at school he is student
encapsulation..
take a car we can see only body of the car but not engine
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Given an array of integers, devise a program to replace every element with the next greatest element on the right side in the array. Also, replace the last element with 5 as there no element on the right side of it.
What sorting algorithm should be used for sorting strings?
You want to insert a new item in a binary search tree. How would you do it?
How many passes are required in bubble sort?
Can an arraylist be null?
What are the applications of b-tree?
Explain the Stack
List the types of rotations available in splay tree?
Explain what is a spanning tree?
What is binary tree and its types?
Does treemap allow null key?
How to reverse a singly linked list?
How do I remove a value from a list?
Why is selection sort used?
How do you sort in ascending order in arraylist?