Difference between Overloading and Overriding?
Answer Posted / swetcha
Overloading - Two functions having same name and return
type, but with different type and/or number of arguments.
Overriding - When a function of base class is re-defined in
the derived class.
| Is This Answer Correct ? | 850 Yes | 105 No |
Post New Answer View All Answers
We all know that a const variable needs to be initialized at the time of declaration. Then how come the program given below runs properly even when we have not initialized p?
What is ios flag in c++?
If a round rectangle has straight edges and rounded corners, your roundrect class inherits both from rectangle and from circle, and they in turn both inherit from shape, how many shapes are created when you create a roundrect?
What is copy constructor? Can we make copy constructor private in c++?
Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?
Describe linkages and types of linkages?
How many types of scopes are there in c++?
what are the events occur in intr activated on interrupt vector table
Is set c++?
Explain the differences between private, public and protected and give examples.
What do you mean by stack unwinding in c++?
Explain how to initialize a const data member.
What are the c++ access specifiers?
Explain storage qualifiers in c++.
Differentiate between a constructor and a destructor in c++.