| |
| Recipe 4.18: Determining the 'SUPER' Parent of a Class or Object |
Last Updated: Sep 8, 2003
Status: Draft
|
|
|
|
How important is this problem to you?
(Login to Vote)
5.00 Rating, 2 Votes
|
|
How acceptable is the proposed solution?
(Login to Vote)
5.00 Rating, 1 Vote
|
|
Problem:
   
You want to know the most immediate SUPERclass of a class or object.
Solution:
   
Use .SUPER:
my $superclass = MyClass.SUPER;
my $superclass = $obj.SUPER;
Discussion:
|
|