different between overloading and overriding

Answer Posted / rekha

Overriding - same method names with same arguments and same
return types associated in a class and its subclass.

Overloading - same method name with different arguments, may
or may not be same return type written in the same class itself.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how can a program be made to print the name of a source file where an error occurs?

691


What are the functions to open and close file in c language?

730


Where in memory are my variables stored?

637


Explain how do you print only part of a string?

651


What is scope and lifetime of a variable in c?

578






How do I use void main?

635


How can I read data from data files with particular formats?

606


Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays

1893


In which language linux is written?

606


What is a spanning Tree?

957


Is struct oop?

582


What is #include stdio h and #include conio h?

603


What is the use of a static variable in c?

595


What does volatile do?

568


How do you define CONSTANT in C?

653