Click here to Skip to main content
14,978,008 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
what is type of Method overloading?. Since Method hiding is Reference type and Method overriding is Object type.

What I have tried:

what is type of Method overloading?. Since Method hiding is Reference type and Method overriding is Object type.
Posted
Updated 12-Apr-17 0:50am
Comments
CHill60 12-Apr-17 6:30am
   
What?

1 solution

I think you are a little confused...
Quote:
Method hiding is Reference type
While you can hide methods on Value types that's because you can't derive from a value type, not some special property of method hiding.
Quote:
Method overriding is Object type.
That doesn't make any sense - an object is a Type, but only in the sense that it's the base type for all classes in C#. You can override a method without any reference to the Object class at all.
Quote:
what is type of Method overloading?
Makes no more sense than the overriding statement did...

I'd suggest you re-read your homework question and your course notes - you seem to have missed the point a bit.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900