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
Why was c++ created?
What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?
Is c++ map a hash table?
What is the error in the code below and how should it be corrected?
What is a null object in c++?
Am pass the 10000 records to target in target I will take commit interval 15000 when I was stop the work flow what will happened
Are vectors passed by reference c++?
If you don’t declare a return value, what type of return value is assumed?
List the types of polymorphism in c++?
Define virtual constructor.
Can we make any program in c++ without using any header file and what is the shortest program in c++.
When does the c++ compiler create temporary variables?
Which function should be used to free the memory allocated by calloc()?
an operation between an integer and real always yeilds a) integer result b) real result c) float result
What are c++ tokens?