How to Use Parameters in Alice 2

ALice lets you create methods that use parameters. So , let’s look at how you can create and use them


Step 1 ) In an object’s method, click the “create parameter” button


Step 2 ) Inside the method editor, use that parameter.  This often involves writing a loop , possibly something along the lines of the code below:


Step 3) Now you can call the method from another place like the world.myfirstmethod




You can even use an “object” as a parameter in Alice




Leave a Reply

Your email address will not be published. Required fields are marked *