Advertisement
Guest User

Untitled

a guest
Jan 27th, 2015
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. module Children
  2. use Parents
  3.  
  4. implicit none
  5.  
  6. type, extends(Parent) :: Child
  7. contains
  8. procedure :: Contents
  9. end type
  10.  
  11. private
  12. public Child
  13.  
  14. contains
  15.  
  16. pure function Contents(this)
  17. class(Child), intent(in) :: this
  18. character(14) :: contents
  19.  
  20. contents = 'childcontents'
  21. end function Contents
  22.  
  23. end module Children
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement