|
Hi to all,
i was wondering about the fact that
as C++ provides for Operator Overloading and Friend
Functions
,does C# Provide such functionality?
Operator overloading is as its name
implies
we can define operator
functionalities for user defined classes
and friend functions are those which can be defined
outside the class but declared friend to the user defined class so that it can
access private memebers of the class.
now by friend where i am confused
is
in C# we can define friend classes, members and
functions but those are part of class and can be accessed in same assembly
only by making the instace of the class
whereas the c++ friend function can be called
without instace of object but just by passing it in arguments
this blurs my c++ concepts
am i thinking right or worng?
just help me
Thanks & Regards
Rohit
|
- Re: [Mono-list] C# Functionality Rohit K Gupta
- Re: [Mono-list] C# Functionality David Waite
- RE: [Mono-list] C# Functionality infodate
- Re: [Mono-list] C# Functionality Richard Thombs
- RE: [Mono-list] C# Functionality J�r�me Laban
