What is Method overloading?

Answer Posted / swetcha

Method overloading occurs when a class contains two methods
with the same name, but different signatures

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

2202


Can you inherit a private class?

835


Can an interface inherit a class?

774


What is abstraction oop?

815


How many human genes are polymorphic?

779


Why do we use oops?

749


can inline function declare in private part of class?

3958


What is an interface in oop?

768


What is inheritance in simple words?

806


What is a class oop?

753


Can we override main method?

827


What is destructor example?

770


What is static in oop?

820


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.

919


What is the difference between inheritance and polymorphism?

786