what's the difference between function overloading and
function overiding?
Answer Posted / vinita taneja
1.function overloading is the function having same name but with different signatures whereas , if there is a member function having same name in both base and derived class , then the member function of derived class will be executed and this is called function overriding.
2.there is no concept of inheritance in function overloading whereas it is there in function overriding.
3.in function overloading , signatures must be different whereas in function overriding , signatures must be same.
| Is This Answer Correct ? | 26 Yes | 0 No |
Post New Answer View All Answers
Is stl open source?
Describe the My Computer and My Documents folders; identify the elements that are present in every Window.
What two types of containers does the stl provide?
What is the stl, standard template library?
What are stl algorithms?
What are the different types of stl containers?
Q1. A. What is unary operator? List out the different operators involved in the unary operator. B. What is an adjust field format flag? Q2. A. Distinguish between a # include and #define. B. Can a list of string be stored within a two dimensional array? Q3. A.Explain how a pointer to function can be declared in C++? B.List the merits and demerits of declaring a nested class in C++? Q4. A. What are the syntactic rules to be avoid ambiguity in multiple inheritence? B. Explain the operation of overloading of an assignment operator. Q5. A. Explain how the virtual base class is different from the conventional base classes of the opps. B. Explain how an exception handler is defined and invoked in a Program. Q6. A. What is a binary file? List the merits and demerits of the binary file usagein C++. B. Write short notes on Text Manipulation Routines. C. Write bites in Turbo c++ Header (“Include”) Files.
what is template and type convertion
a program using one dimensional array that searches a number if it is found on the list of given input numbers given by the user and locate its exact location in the list.
help me i need a c++ program which takes sequesnce of characters and outputed sequence of their token taypes, work same compiler in lexical analysis phase
What is a standard template library (stl)? What are the various types of stl containers?
What is stl stand for?
What is meant by stl in c++?
In what scenario does the Logical file and Physical file being used?
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.