Difference between Overloading and Overriding?
Answer Posted / kunal
Overloading - Two or more functions having same name but
different siganture(i.e arguements or return types) for eg.
we have a function named as area then
area();,float area();,area(float a,float b);,float area
(float a,float b);
Overriding - When a function of base class is re-defined in
the derived class.for eg.
base class
{
area(float a,float b);
}
derive class
{
float area();
}
Is This Answer Correct ? | 42 Yes | 109 No |
Post New Answer View All Answers
What is singleton class in c++?
Who invented turbo c++?
Explain the difference between struct and class in terms of access modifier.
Must accepts "Maestro Cards" Tax for bike should be less than 15 Total number of lanes is more than 10 Must provides monthly pass Write a method: boolean isGoodTollBridge(String[] cardsAccepted, String[] tollTax, boolean hasMonthlyPass, int numberOfLanes); String[] cardsAccepted A String array of names of card types accepted for payment of toll tax, it can be null if the toll does not accept any card String[] tollTax A String array of toll tax chart (say “Train : 300â€Â,â€ÂBullCart : 10â€Â) boolean hasMonthlyPass This parameter defines whether there is any monthly pass available or not int numberOfLanes This parameter defines the number of lanes for each side
Do you know the use of vtable?
What are 2 ways of exporting a function from a dll?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create
Where must the declaration of a friend function appear?
an integer constant must have atleast one a) character b) digit c) decimal point
What is the difference between global variables and local variable
What is the need of a destructor?
Explain one method to process an entire string as one unit?
Explain how we implement exception handling in c++?
What is a node class in c++?
Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.