A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
19
Task/Inheritance-Single/PHP/inheritance-single.php
Normal file
19
Task/Inheritance-Single/PHP/inheritance-single.php
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
class Animal {
|
||||
// functions go here...
|
||||
}
|
||||
|
||||
class Dog extends Animal {
|
||||
// functions go here...
|
||||
}
|
||||
|
||||
class Cat extends Animal {
|
||||
// functions go here...
|
||||
}
|
||||
|
||||
class Lab extends Dog {
|
||||
// functions go here...
|
||||
}
|
||||
|
||||
class Collie extends Dog {
|
||||
// functions go here...
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue