difference between overloading and overridding

Answer Posted / k.senthil arasur sathyamangala

overloading:Two function have same name and same return type
but different type of arguments used.


overriding:Two function have same name and same arguments
used but that function defined in a base class redefined in
a derived class

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you overcome the diamond problem in inheritance?

957


What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }

2200


What is a class and object?

789


Describe these concepts: Polymorphism, Inheritance and Abstraction.

856


What does enum stand for?

858


What is oops and its features?

823


What is difference between oop and pop?

866


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.

6704


Why do we use polymorphism in oops?

780


what type of questions

1889


Why do while loop is used?

767


What is the difference between inheritance and polymorphism?

791


hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.

1738


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’.

1981


given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy

2362