can you give real time example for polymarphism
Answer Posted / rama
Shape
draw()
it may consists of:
1.Circle object
Draw(circle)
2.Box object
Draw(box)
3.Triangle object
Draw(triangle)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is polymorphism used for?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
What is abstraction and encapsulation?
write a C++ program for booking using constructor and destructor.
What is the purpose of polymorphism?
What is class and example?
What does no cap mean?
Which method cannot be overridden?
Why is abstraction used?
What is oops concept with example?
What is encapsulation oop?
How long to learn object oriented programming?
what type of question are asked in thoughtworks pair programming round ?
Write a program to sort the number with different sorts in one program ??
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).