Quantcast
Channel: Ref Class Question
Viewing all articles
Browse latest Browse all 7

Ref Class Question

$
0
0

No. You cannot access the neste classes using ->. I suspect what you really want is not to access the neste class but some instances of them:

public ref class Man abstract sealed {

...

Size ^size;

Name ^name;

Colour ^colour;

}

Now you can write something like m->size, m->name, m->colour.

What I don't understand is why you have declared all the members of the nested classes as static. Is this really what you intended ?

 


Viewing all articles
Browse latest Browse all 7

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>