Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66648

LVOOP: Children aren't Friends of their Parents' Friends

$
0
0

OK, so I don't know if it's a bug, a poor design decision, or my lack of understanding, BUT here goes...

(talking LV2013 here)

 

I have two preant classes, from which I am making plugin child classes.

I would LIKE some of their methods to be restricted from the Public sphere.

 

So... I make the two classes Friends, and the methods Community. It works great!

 

However... their plugin Child classes CANNOT access these Community methods.

 

That seems stupid to me. It means I have to choose between having child classes and accessing friends' methods. If children inherent their parents' methods then why can't they inherit the ability of their parents to access their friends methods?

 

I think I am going to have to create protected parent method wrappers around friend methods?

 

Any insights would be appreciated. I'd really like to see this changed, but not being a LVOOP expert like so many of you out there, I'd love to learn the rationale behind this.

 

Any insights?


Viewing all articles
Browse latest Browse all 66648

Trending Articles