Answer Posted / lokesh singh
when ever we think about generic function, first of all
think why we needed.
if we want to use no of diffrent-diffrent variables in a
programme then we need no of function for that purpose.
generic function is used for preventing function
overloading. due to feature of taking any type of variable.
it have such type of quality.
| Is This Answer Correct ? | 8 Yes | 5 No |
Post New Answer View All Answers
Where You Can Use Interface in your Project
What is advantage of inheritance?
Why do we need polymorphism in c#?
What is polymorphism give a real life example?
What does <> mean pseudocode?
What is polymorphism what is it for and how is it used?
What is a null tree?
Plese get me a perfect C++ program for railway/airway reservation with all details.
What is constructor overloading in oop?
what is the drawback of classical methods in oops?
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.
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
explain sub-type and sub class? atleast u have differ it into 4 points?
What are the 3 principles of oop?
What is difference between inheritance and polymorphism?