General C# Questions
-
Hello, I have a simple question. Suppose you have a class X. Now you have a Class Y, which derives from Class X. Now in Class Y can I create a member which is a object of type X, let the object name be ob. Now Suppose Class X has a public member int a, would this be a valid statement? [Object of type Y].ob.a = 10 Thanks
-
Hello, I have a simple question. Suppose you have a class X. Now you have a Class Y, which derives from Class X. Now in Class Y can I create a member which is a object of type X, let the object name be ob. Now Suppose Class X has a public member int a, would this be a valid statement? [Object of type Y].ob.a = 10 Thanks
Ummmm, yeah? But it sounds like a poor design.
-
Ummmm, yeah? But it sounds like a poor design.
Yeah. Was just checking.