| newkid93 (15) | |
|
I have this code and realized that it has the same numbers as some other C# files i have, but never understood what the 6 and 7 meant.... class Net { public int _value = 6; } class Perl : Net { public new int _value = 7; public void Write() { may someone tell me please what they stand for? | |
|
|
|
| pogrady (525) | |
|
They don't stand for anything. Its a demonstration of what is possible. BTW: The boards here are for C++, not C#... two different languages. | |
|
|
|
| vlad from moscow (3662) | |
|
The code is invalid because there is no such construction as public new int _value = 7; neither in C++ nor in C#. | |
|
|
|
| newkid93 (15) | |
| thank you pogrady i was confused...i have more to learn than i thought. | |
|
|
|
| newkid93 (15) | |
| oh, it is on this site where i am trying to learn c# coding. i guess it is not a great reference site then, hm? i will send it to you vlad | |
|
|
|