class base
{
public:
int fun(int)
{}
};
class base2
{
public:
int fun(float)
{
}
};
so here qustion is both function either function
overloading or over riding;
Answer Posted / utpal kashyap
Overloading...
Because Function overloading depends upon type of parameters/number of parameters (NOT type of function) passed in function, So this is the example of function overloading.
| Is This Answer Correct ? | 11 Yes | 3 No |
Post New Answer View All Answers
What is polymorphism and its type in c++?
What are the advantages of using friend classes?
How did c++ get its name?
Assume an array of structure is in order by studentID field of the record, where student IDs go from 101 to 500. Write the most efficient pseudocode algorithm you can to find the record with a specific studentID if every single student ID from 101 to 500 is used and the array has 400 elements. Write the most efficient pseudocode algorithm you can to find a record with a studentID near the end of the IDs, say in the range from 450 to 500, if not every single student ID in the range of 101 to 500 is used and the array size is only 300
What is the sequence of destruction of local objects?
How one would use switch in a program?
What is the outcome of cout< a) 16 b) 17 c) 16.5
What is a block in c++?
Why struct is used in c++?
Difference between overloading vs. Overriding
What is doubly linked list in c++?
Tell me difference between constant pointer and pointer to a constant.
Can you please explain the difference between overloading and overriding?
What is protected inheritance?
What does count ++ do in c++?