perl/classes/inheritance question...
From: jseely13 (jseely13_at_charter.net)
Date: 09/15/04
- Previous message: Joe Smith: "Re: Piping ping into perl-prog"
- Next in thread: jseely13: "Re: perl/classes/inheritance question..."
- Reply: jseely13: "Re: perl/classes/inheritance question..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 15 Sep 2004 14:32:54 -0700
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
- Previous message: Joe Smith: "Re: Piping ping into perl-prog"
- Next in thread: jseely13: "Re: perl/classes/inheritance question..."
- Reply: jseely13: "Re: perl/classes/inheritance question..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|