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 what is a program flowchart and explain how does it help in writing a program?

643


What is the value of uninitialized variable in c?

568


What is adt in c programming?

607


Describe newline escape sequence with a sample program?

651


When should a far pointer be used?

600






Can you please compare array with pointer?

613


Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?

574


Explain what is dynamic data structure?

642


Tell me with an example the self-referential structure?

560


What do you mean by invalid pointer arithmetic?

637


What is the translation phases used in c language?

628


Explain what are reserved words?

631


Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers

1420


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

1889


What is clrscr in c?

669