can you give real time example for polymarphism
Answers were Sorted based on User's Feedback
Answer / lavanya
I am daughter for my parents,sister for my sibling, and also
a employee for my employer...am one but acting different in
different scenario....
| Is This Answer Correct ? | 15 Yes | 0 No |
Answer / venki
Appearing different forms of water
once it acts as ice
and other vapour
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / 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 |
design class for linked list and include constructor,destructor,insert option. struct node { int node; struct node &ptr; }
What is a macro? And how is a macro same as a template?
What is class in oop with example?
What are the 4 main oop principles?
create a class complex having real and imaginary part of a complex no. as a data member. overload the binary operators(+,- and *) to perform the operations on complex no. objects. overload binary operator using friend function.
2 Answers CTS, Delhi University,
What is a superclass in oop?
Is abstract thinking intelligence?
What is multiple inheritance?
what is oppes
What are the main differences between procedure oriented languages and object oriented languages?
9 Answers IBM, Infosys, Wipro,
why constructor cannt be declar virtually? why destructor cannt be overloaded?
Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.