Answer Posted / prabhakar
defining a function with a same name with differ in number of arguments r return type r tpe of arguments in one class is called funstion overloading.
for example
class base
{
public:
fun(int a,int b);
fun(char a,char b);
}
above two functions are diffrer in type of arguments.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Advantage and disadvantage of routing in telecom sector
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
What are the two different types of polymorphism?
What are the 4 pillars of oop?
What is polymorphism in oop example?
Why do we need oop?
What are constructors in oop?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
Whats oop mean?
Why do pointers exist?
to find out the minimum of two integer number of two different classes using friend function
What is purpose of inheritance?
Why is encapsulation used?