Difference between over loading and over ridding?
Answer Posted / manav sharma
Overloading: Same function or operator responds differently
on different types on inputs. This is done by defining a
function (including operator fn() definition) with the same
name but different argument list.
Overriding: Redefining any base class function in a
derieved class to work differently than what is defined in
the base class. So, now the same function called with same
argument list will behave differently when called on the
objects of base and derieved class.
Important: Which instance of function to bind with the
object depends on the type of object on which the function
is called and is decided on compile time. This is also
called early binding or compile time polymorphism.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is overloading and its types?
What is an advantage of polymorphism?
Is html an oop?
what's the basic's in dot net
What is abstraction in oop with example?
What is overriding in oops?
when to use 'mutable' keyword and when to use 'const cast' in c++
How do you define a class in oop?
How many human genes are polymorphic?
What is data binding in oops?
What does <> mean pseudocode?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
how to get the oracle certification? send me the answer
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
What type of loop is a for loop?