write a program which best describes polymorphism in real
world?
Answers were Sorted based on User's Feedback
Answer / renjitha r kumar
single man behave differently in differnt situations
| Is This Answer Correct ? | 21 Yes | 2 No |
Answer / sujay
two person with same name say XXX but they have different
initials(father) which is one of the example or the real
world polymorphism
| Is This Answer Correct ? | 18 Yes | 4 No |
what is difference between objects and function
Can private class be inherited?
What is the difference between Home and $Home?
What is overriding vs overloading?
What is virtual constructors/destructors?
What is Hashing and how is it done? Pictorial form?
Explain the advantages of inheritance.
Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
what type of questions
What is the default size allocated for array in the statement if size not specified " int a[] "
write a c++ code to overload + and - for a stack class such that + provides push and - provides pop operation
1 Answers College School Exams Tests, HCL, IBM, TCS,