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
Why you need a data structure?
How to create your own data structure in java?
Give the example of validating the parenthesis of expression using stack.
Why is sorting important?
Can we make hashmap synchronized?
What is basic data structure?
Why do we use stacks?
Does hashtable allow null values?
Does treeset remove duplicates?
How does the size of arraylist increases dynamically?
What is the idea behind splaying?
What are the properties of an algorithm?
What are vectors used for in real life?
What is stack in geography?
What is the difference between linked list and array?