|
I am sorry to bother the list with this question,
but I could not find a satisfying answer anywhere.
My question regards overloading operators. As far
as I know, if you want to overload some operator, it must be public and
static.
1. I dont understand why this have to be that
way
2. If I want to overload the ++ operator in a class
that I dont want to be public, but internal or private, how can I prevent
someone from accessing a method (the ++ operator) that has been defined
public?
Another question is:
Since you can not overload the = operator, how can
you redefine the assignement without using a copy constructor like
Class1(Class1 c) { /* data and
methods */ }
With regards, and hoping someone can give me a
hint
Ricardo Kirkner
|
- Re: [Mono-list] Question about C# Ricardo Kirkner
- Re: [Mono-list] Question about C# Jonathan Pryor
- Re: [Mono-list] Question about C# Ricardo Kirkner
- Re: [Mono-list] Question about C# BioChem333
- Re: [Mono-list] Question about C# Jonathan Pryor
- Re: [Mono-list] Question about C# Miguel de Icaza
