S
SpongeBob
I am a c++ programmer and quiet new to c sharp.
Unfortunately, i didnt understand what the adventage of a property is.
Let's assume, i have a class(Calculator) field:
int num;
Calculator c = new Calculator();
So, what for an advantage do i have if i write:
c.num = 5;
instead of :
c.Num = 5; // assuming that a property with this name and a set already
created
Thats almost the same, isn't it ?
Unfortunately, i didnt understand what the adventage of a property is.
Let's assume, i have a class(Calculator) field:
int num;
Calculator c = new Calculator();
So, what for an advantage do i have if i write:
c.num = 5;
instead of :
c.Num = 5; // assuming that a property with this name and a set already
created
Thats almost the same, isn't it ?