Home
About Us
Contact Us
Bookmark
Saved Bookmarks
Current Affairs
General Knowledge
Chemical Engineering
UPSEE
BSNL
ISRO
BITSAT
Amazon
ORACLE
Verbal Ability
→
Programming
→
ASP Dot net Interview Questions in Programming
→
What is the difference between Method overriding a...
1.
What is the difference between Method overriding and Method overloading?
Answer»
Method Overloading
Method Overriding
It is the concept where we
DEFINE
two or more methods by the same name but with
DIFFERENT
signatures.
In method overriding we define two or more identical methods which have the same name and signatures.
The binding of the method is
DONE
at compile time.
The binding of the method is done at run time.
There are no class restrictions i.e. it can be
ACHIEVED
in the same or different classes.
There are class restrictions in it i.e. it can only be achieved in different classes.
Show Answer
Discussion
No Comment Found
Post Comment
Related InterviewSolutions
__PHP_Incomplete_Class when do we get this? How to solve this problem?
How to expose private members when JSON encoding an object?
How can you access class members as array indexes?
How to pass out of scope variables to a callback function?
What are promises?
What are generators?
What is a resource? Which functions return/create resource?
Does PHP support event loop? If yes give some example.
What is OPcache?
How does the method overriding work with Traits?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies