Given the following code -
struct MyBase { void foo();};struct MyStruct : MyBase {};class MyClass : MyBase {};void main() { MyStruct myStruct; MyClass myClass; myStruct.foo(); // 1 myClass.foo(); // 2}
Are either of the commented lines valid?
The more you know :]
Btw, I replied to your other one (two entries down.)