Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 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