
trysil
Novice
May 30, 2011, 5:36 AM
Post #1 of 2
(388 views)
|
|
About classes and their parents
|
Can't Post
|
|
Hi! Taking a look at OO perl and now I'm wondering about a good way to call the constructor of the parent class. e.g I have a superclass A and a class B that inherits from A. As I call the sub new in the B class I want to start by calling the sub new in the parent class with part of the arguments sent to B. Can't get it to work in my test code. /T
|