Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 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