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