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

my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?

1333


What is wrong with this declaration?

834


What is structure pointer in c?

777


int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above

983


general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only

824


Why static is used in c?

822


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

810


Explain union.

893


In C programming, what command or code can be used to determine if a number of odd or even?

819


code for replace tabs with equivalent number of blanks

1896


What's the total generic pointer type?

811


What is a stream water?

890


Are negative numbers true in c?

774


What is f'n in math?

821


Why shouldn’t I start variable names with underscores?

829