Jump to content

Methods of public class inherited from private class not accessible


Recommended Posts

This may be a feature, not a bug.

One may define class inside a library to be public or private. Public classes can be accessed from outside the library and private classes only from inside the library. When on defines ancestor class to be private and decendent class to be public, it's not clear if the inherited methods will be private or public. In LabVIEW 8.20 these inhereted methods are private and inaccessible outside the library. This means that even though the class is public, some of its public methods are inaccessible, since they are defined in a private class.

I think that if a class is public, then all its public methods should also be public, no matter if they are defined in a private class. That is, if a public class is derived from a private class, then the private class should become public in methods but the class constant should remain private. Dynamic VIs should require a public class to be connected to dynamic dispatch input terminal.

-jimi-

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.