The Eiffel Programming Language: Hello World! Program


The Hello World! Source Code

-------------------------------------------------
the HELLO_WORLD class (hello_world.c)
-------------------------------------------------

class HELLO_WORLD


creation
	make

feature
        make is

	local
		io:BASIC IO

	do
		!!io
		io.put_string("%N Hello World!!!!")

	end --make


end -- class HELLO_WORLD

-------------------------------------------------
program to run HELLO_WORLD class (hello_prog.pdl)
-------------------------------------------------

program hello_prog


root
	HELLO_WORLD: "make"

cluster
	"./"

	end

	include "$EIFFEL_S/library/lib.pdl"


end -- hello_prog

-------------------------------------------------

[Back] [Home]