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


Please Help Members By Posting Answers For Below Questions

Why was c++ created?

540


What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?

560


Is c++ map a hash table?

560


What is the error in the code below and how should it be corrected?

295


What is a null object in c++?

627






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

1072


Are vectors passed by reference c++?

513


If you don’t declare a return value, what type of return value is assumed?

538


List the types of polymorphism in c++?

618


Define virtual constructor.

634


Can we make any program in c++ without using any header file and what is the shortest program in c++.

607


When does the c++ compiler create temporary variables?

560


Which function should be used to free the memory allocated by calloc()?

587


an operation between an integer and real always yeilds a) integer result b) real result c) float result

701


What are c++ tokens?

584