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 explain?
Why is oop better than procedural?
What is polymorphism and types?
What is a superclass in oop?
how to get the oracle certification? send me the answer
Which method cannot be overridden?
What is coupling in oop?
What is data binding in oops?
What causes polymorphism?
Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.
What is inheritance in simple words?
What is class and object in oops?
Can an interface inherit a class?
What are the three main types of variables?
i got a backdoor offer in process global,Bangalore..Can i work with it?