RosettaCodeData/Task/Inheritance-Single/Fortran/inheritance-single.f

19 lines
250 B
FortranFixed
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
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