A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
3
Task/Inheritance-Single/Perl/inheritance-single-1.pl
Normal file
3
Task/Inheritance-Single/Perl/inheritance-single-1.pl
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
package Animal;
|
||||
#functions go here...
|
||||
1;
|
||||
5
Task/Inheritance-Single/Perl/inheritance-single-2.pl
Normal file
5
Task/Inheritance-Single/Perl/inheritance-single-2.pl
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
package Dog;
|
||||
use Animal;
|
||||
@ISA = qw( Animal );
|
||||
#functions go here...
|
||||
1;
|
||||
5
Task/Inheritance-Single/Perl/inheritance-single-3.pl
Normal file
5
Task/Inheritance-Single/Perl/inheritance-single-3.pl
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
package Cat;
|
||||
use Animal;
|
||||
@ISA = qw( Animal );
|
||||
#functions go here...
|
||||
1;
|
||||
5
Task/Inheritance-Single/Perl/inheritance-single-4.pl
Normal file
5
Task/Inheritance-Single/Perl/inheritance-single-4.pl
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
package Lab;
|
||||
use Dog;
|
||||
@ISA = qw( Dog );
|
||||
#functions go here...
|
||||
1;
|
||||
5
Task/Inheritance-Single/Perl/inheritance-single-5.pl
Normal file
5
Task/Inheritance-Single/Perl/inheritance-single-5.pl
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
package Collie;
|
||||
use Dog;
|
||||
@ISA = qw( Dog );
|
||||
#functions go here...
|
||||
1;
|
||||
17
Task/Inheritance-Single/Perl/inheritance-single-6.pl
Normal file
17
Task/Inheritance-Single/Perl/inheritance-single-6.pl
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
use MooseX::Declare;
|
||||
|
||||
class Animal {
|
||||
# methods go here...
|
||||
}
|
||||
class Dog extends Animal {
|
||||
# methods go here...
|
||||
}
|
||||
class Cat extends Animal {
|
||||
# methods go here...
|
||||
}
|
||||
class Lab extends Dog {
|
||||
# methods go here...
|
||||
}
|
||||
class Collie extends Dog {
|
||||
# methods go here...
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue