tinycodinglm / lang /lang-0014.jsonl
winapiadmin's picture
Upload folder using huggingface_hub (part 15)
b27bfb3 verified
|
Raw History Blame Contribute Delete
720 Bytes
opencode trace
System You are an expert software engineer.

You are an expert software engineer.

User

How does OOP work in modern Fortran?

Assistant

Type-bound procedures: type :: Particle; contains; procedure :: move => particle_move; end type.

Constructor: function returning type. Type-bound: pass(self), nopass.

Inheritance: extends(Particle). Polymorphic: class(Particle), select type.

Abstract types, deferred procedures. Final destructor. Public/private access control.