what is overloading and overriding?

Answer Posted / pranita panchakshare

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.
i aggry with this answer

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between pop and oop?

793


What is the difference between encapsulation and polymorphism?

816


Why is oop better than procedural?

798


String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?

2142


State what is encapsulation and friend function?

930


How oops is better than procedural?

812


What is difference between multiple inheritance and multilevel inheritance?

860


How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction

1869


What is abstraction in oops with example?

984


What is abstraction in oops?

781


What is encapsulation in ict?

801


Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

1886


Why do we need oop?

863


Is abstract thinking intelligence?

777


What is inheritance in simple words?

806