J
jseely13
in c++ when you create a superclass and subclass, there is some way
you can define the superclass such that it has an empty/undefined
method. any children of this class are required to both have and
define this method. i wish i could remember what this is called...
for ex:
parent-class:
sub do_something() {
}
child-class 1:
sub do_something(){
x++;
}
child-class 2:
sub do_something(){
x--;
}
anyway, is there a comparable thing in perl? it would be useful
atm...
TIA,
-- john
you can define the superclass such that it has an empty/undefined
method. any children of this class are required to both have and
define this method. i wish i could remember what this is called...
for ex:
parent-class:
sub do_something() {
}
child-class 1:
sub do_something(){
x++;
}
child-class 2:
sub do_something(){
x--;
}
anyway, is there a comparable thing in perl? it would be useful
atm...
TIA,
-- john