Difference between Overloading and Overriding?
Answer Posted / janet
1. In overloading,there is a relation ship between methods
available in the same class where as in overridding,there
is relationship between a super class method and subclass
method.
2. overloading doesn't block inheritence from the
superclass where as overridding blocks inheritence.
3. in overloading,seperate methods share the same name
where as in overridding,subclass methods replaces the
superclass.
4.overloading must have different method signatures where
as overriding must have same signature.
Is This Answer Correct ? | 482 Yes | 79 No |
Post New Answer View All Answers
In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h
How can we check whether the contents of two structure variables are same or not?
Does c++ have string data type?
What is cout flush?
Write an algorithm that determines whether or not an almost complete binary tree is a heap.
daily Routine of father
What are the various storage classes in C++?
Explain the term memory alignment?
What is the average salary of a c++ programmer?
Is c++ faster than c?
Is it possible for the objects to read and write themselves?
To what does “event-driven” refer?
Do class declarations end with a semicolon? Do class method definitions?
If you push the numbers (in order) 1, 3, and 5 onto a stack, which pops out first a) 1 b) 5 c) 3
Define a nested class.