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

The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none

771


What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers

687


What are the different types of linkage exist in c?

621


Explain the advantages of using macro in c language?

590


write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1

3315






What is typedef example?

629


What is boolean in c?

621


WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER

1470


Explain how can I remove the trailing spaces from a string?

634


What is getche() function?

619


Can you please compare array with pointer?

625


What is the difference between break and continue?

613


Explain what is dynamic data structure?

656


Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?

602


Is it cc or c in a letter?

578