1.3. Add a new operation

We are adding a new operation of the HelloWorld project, this operation should return a string : "Hello world from a Kermeta project!!!"

  1. In the new kermeta project, open file : "MainClass.kmt"

  2. Add in class MainClass the following program listing :

operation helloWorld() : String is do
	result := "Hello world from a Kermeta project!!!"
end
			
  1. Compile the project and check there is no error

    To Compile : right click on file "project.kp", select Kermeta2 -> Clean and Build Kermeta Project