Quote:
Originally Posted by legend_018
I was trying to complete a lab project though. It was in your tutorial.
The second part of the project says:
The program named Alice0150b
The source code for this program is shown in Listing 2. The purpose of this program is to illustrate the use of the new class named SpinningHare to add new objects to your world. To run this program, do the following:
* Create a new world.
* Use the Import... item on the File menu to add two objects of your new SpinningHare class to your world.
* Rename the objects spinningHare1 and spinningHare2.
* Write and run the main method shown in Listing 2.
Once again, I included calls to the move method in addition to calls to the spin method in Listing 1 to demonstrate that the object created from the new class contains the new method named spin in addition to the primitive methods.
>>>>>>I can't do this second part. I keep on going through the tutorial for this chapter over and over and I think I'm following the instructions. So as a result I have the problem that I described above.
I really want to have some basics down before moving on. I am planning on trying to learn C# and will be using your tutorial to begin with. Thanks!!!
|
In my opinion, the "save object" feature of Alice 2.0 is far from the mainstream in OOP. An inability to "save objects" in Alice 2.0 should have no detrimental impact on your ability to learn OOP using C#.Therefore, unless you **really** need to be able to "save objects" in Alice, I would advise you to put that feature on the back burner and move on to other aspects of Alice. Stated bluntly, in my opinion, "save object" in Alice 2.0 is a weak and crude attempt to make Alice look something like an OOP language, which it clearly isn't.
Even though the code that I published worked well for me when I published it, I skip the "save object" material in the Alice programming course that I teach.
Dick Baldwin
Free Alice tutorials:
http://www.dickbaldwin.com/tocalice.htm
Free Scratch tutorials:
http://www.dickbaldwin.com/tocHomeSchool.htm
Free Java/C#, etc. tutorials:
http://www.dickbaldwin.com/toc.htm