Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

Topic: Inheritance from classes withina package
Replies: 7   Last Post: May 24, 2013 3:57 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Nick Clark

Posts: 35
Registered: 8/8/08
Inheritance from classes withina package
Posted: Sep 23, 2009 2:47 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi all,
I have a query regarding inheritance of one class by another within a package. For example, classB < classA within package mypack. From outside the package directory I type:

import mypack.*
x = classB

. . then I get an error saying that classA cannot be accessed. I can resolve this by making classB < myclass.classA at the top of the classdef of classB. However, this seems like a bit of a clunky 'duct tape' kind of work around. It also causes problems when trying to display the documentation about the classes which are linked in blue from the disp command.

What is the recommended elegant method for inheritance within a package?



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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.