A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
18
Task/Inheritance-Single/Fortran/inheritance-single.f
Normal file
18
Task/Inheritance-Single/Fortran/inheritance-single.f
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
module anim
|
||||
|
||||
type animal
|
||||
end type animal
|
||||
|
||||
type, extends(animal) :: dog
|
||||
end type dog
|
||||
|
||||
type, extends(animal) :: cat
|
||||
end type cat
|
||||
|
||||
type, extends(dog) :: lab
|
||||
end type lab
|
||||
|
||||
type, extends(dog) :: collie
|
||||
end type collie
|
||||
|
||||
end module anim
|
||||
Loading…
Add table
Add a link
Reference in a new issue