-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Second implementation of abstract class added
- Loading branch information
1 parent
4c0b215
commit 74375b8
Showing
10 changed files
with
84 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
module myclass_impl2 | ||
|
||
use myclass_base, only: myclass_t | ||
implicit none | ||
|
||
type, extends(myclass_t) :: myclass_impl2_t | ||
contains | ||
procedure :: get_value => get_value_impl2 | ||
final :: myclass_impl2_destroy | ||
end type myclass_impl2_t | ||
|
||
contains | ||
|
||
subroutine get_value_impl2(self, value) | ||
class(myclass_impl2_t), intent(in) :: self | ||
real, intent(out) :: value | ||
|
||
value = 2.0 | ||
end subroutine get_value_impl2 | ||
|
||
subroutine myclass_impl2_destroy(self) | ||
type(myclass_impl2_t), intent(inout) :: self | ||
|
||
print *, "Finalising myclass_impl2_t" | ||
end subroutine myclass_impl2_destroy | ||
|
||
end module myclass_impl2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters