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
What is polymorphism what are the different types of polymorphism?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
What are the 4 pillars of oop?
What is encapsulation in simple terms?
What is abstraction in oops with example?
Can we have inheritance without polymorphism?
Is html an oop?
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
What is the main purpose of inheritance law?
What is solid in oops?
Why is polymorphism important in oop?
What are different oops concepts?
What is class and example?
write a program that takes input in digits and display the result in words from 1 to 1000
What is class encapsulation?