Differentiate between overloading and overriding.



Differentiate between overloading and overriding...

Answer / Pravesh Kumar Tripathi

Method Overloading is a technique in OOP where multiple methods with the same name but different parameters are defined within a class. Method Overriding, on the other hand, occurs when a derived class provides a specific implementation for a method that already exists in its base class.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOAD Interview Questions

What is method overriding?

1 Answers  


What are the features of encapsulation ?

1 Answers  


explain the difference between operator overloading and function overloading.

1 Answers   TCS,


What is single and multiple inheritance?

1 Answers  


Explain about a class?

1 Answers  


What is the abstract method modifier?

1 Answers  


How do you represent static members and abstract classes in Class Diagram?

2 Answers   InfoAxon Technologies, Protech,


What are the main features of oops?

1 Answers  


What is the default access modifier for a class,struct and an interface declared directly with a namespace?

1 Answers  


Every object has : state, behavior and identity - explain

2 Answers   InfoAxon Technologies, Protech,


What is a try/ catch block?

1 Answers  


Explain what an object is.

1 Answers   TCS,


Categories