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
What is the application of queue?
Is arraylist faster than array?
Will arraylist maintain insertion order?
What is bubble sort algorithm?
Why is null not allowed in concurrenthashmap?
Explain what is binary search?
Can a class have a constructor?
What is scalar example?
how to insert a new node in linked list where free node will be available?
Tell me is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
What is dynamic array with example?
Should I use hashmap or hashtable?
Define linked lists?
Can you list out the areas in which data structures are applied extensively?
Define indegree of a graph?