| MATLAB Central > MATLAB Newsreader > Superclass methods using constant subclass prop... |
|
|
|
Subject: Superclass methods using constant subclass properties? From: Chris Hall Date: 20 Nov, 2009 05:12:20 Message: 1 of 7 |
|
I am making a bunch of similar classes, to simplify things I have made a superclass with abstract properties that are common to all of the classes, the classes then features from the superclass particularly methods. My classes have a lot of constants and a lot of methods that would make good static methods, but I can't figure out how to use my constant subclass properties in a superclass static method, perhaps an example |
|
Subject: Superclass methods using constant subclass properties? From: Chris Hall Date: 24 Nov, 2009 15:42:17 Message: 2 of 7 |
|
To make what I'm trying to do a little more explicit, I have a bunch of lookup tables with values and headers for the tables that don't change for table, but there are many different tables which I am defining as different classes. There are a set of methods that are common to all of these tables, although I need to make slight variations to some of the methods depending on the table. |
|
Subject: Superclass methods using constant subclass properties? From: Matt Date: 24 Nov, 2009 17:49:18 Message: 3 of 7 |
|
"Chris Hall" <chris.hall@aggiemail.usu.edu> wrote in message <he58fk$9lf$1@fred.mathworks.com>... |
|
Subject: Superclass methods using constant subclass properties? From: Matt Date: 24 Nov, 2009 18:15:23 Message: 4 of 7 |
|
"Chris Hall" <brainchild399@yahoo.com> wrote in message <hegusp$9ho$1@fred.mathworks.com>... |
|
Subject: Superclass methods using constant subclass properties? From: Chris Hall Date: 24 Nov, 2009 19:35:13 Message: 5 of 7 |
|
> |
|
Subject: Superclass methods using constant subclass properties? From: Matt Date: 25 Nov, 2009 11:24:03 Message: 6 of 7 |
|
"Chris Hall" <brainchild399@yahoo.com> wrote in message <hegusp$9ho$1@fred.mathworks.com>... |
|
Subject: Superclass methods using constant subclass properties? From: Matt Date: 25 Nov, 2009 12:22:05 Message: 7 of 7 |
|
"Chris Hall" <brainchild399@yahoo.com> wrote in message <hegusp$9ho$1@fred.mathworks.com>... |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| oop | Matt J | 24 Nov, 2009 14:48:50 |
| methods | Chris Hall | 20 Nov, 2009 00:14:06 |
| constant | Chris Hall | 20 Nov, 2009 00:14:06 |
| static | Chris Hall | 20 Nov, 2009 00:14:06 |
| subclass | Chris Hall | 20 Nov, 2009 00:14:06 |
| properties | Chris Hall | 20 Nov, 2009 00:14:06 |
| objectoriented | Chris Hall | 20 Nov, 2009 00:14:06 |
| superclass | Chris Hall | 20 Nov, 2009 00:14:06 |
Contact us at files@mathworks.com
