The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Unexpected package behavior
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Jim Hokanson

Posts: 14
Registered: 1/27/11
Unexpected package behavior
Posted: Nov 6, 2012 9:21 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I have the following setup:


Is the following supposed to work. This seems like it should be an error and yet I am getting the sub class constructor call.

m = my_pack.my_class;
m2 = m.my_sub_class;

Since I am working with an instance of the class it seems to me that only properties and or methods of that class should be accessible. Is this is a design decision or a bug?


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.