alice-teacher Deriving classes?

Barron, Gloria E Gloria.Barron at montgomerycollege.edu
Fri Nov 1 12:39:16 EDT 2024


[like]  Barron, Gloria E reacted to your message:
________________________________
From: alice-teachers <alice-teachers-bounces+gloria.barron=montgomerycollege.edu at lists.andrew.cmu.edu> on behalf of Vanderhyde, James <vanderhyde at sxu.edu>
Sent: Friday, November 1, 2024 1:43:44 PM
To: Alice educators <alice-teachers at lists.andrew.cmu.edu>
Subject: Re: alice-teacher Deriving classes?

Phil, welcome to the group. The problem you describe really threw me for a loop when I started using Alice 3.

I think the video you watched might have been for Alice 2, or maybe the person who made it was still thinking in Alice 2 terms. Try this video:
https://www.youtube.com/watch?v=zITzfZkpxR8

There is actually no way to create your own class in Alice 3. It’s not object oriented in that sense. What you can do is create methods for one of the existing classes, export the methods, and import them into the same class in a different project, like Don does in the video.

If you want to see what Alice is doing with the classes and objects, I recommend exporting the Alice 3 project to NetBeans, and then opening it in NetBeans. You’ll see that the project has injected classes into the hierarchy. Alice 3 allows you to modify those injected classes with new methods, but you can’t inject your own classes.

You can do whatever you want in Java in NetBeans, but you can’t bring it back into Alice.

James
—
James Vanderhyde
Associate Professor
Computer Science
Saint Xavier University
3700 W. 103rd St.
Chicago, IL 60655
773-298-3454
vanderhyde at sxu.edu
sxu.edu

On Oct 31, 2024, at 9:25 AM, Phil Tessier <ptessier1958 at gmail.com> wrote:

Greetings, all!

This is my first post, having just joined the mailing list. I looked through the archives, but didn't find anything related to my question.
I'm new to Alice3, having started with it for the purpose of homeschooling my girls in programming. I'm an experienced OOP programmer, mostly C++ these days.

I want to create my own class, the properties and methods of which would be available to other classes. I found a tutorial online, which purports to do this. One of the important steps of that method is to Export my object, *with a new name*. But, while I'm able to export my object, the Export dialog doesn't provide a "rename" option. What am I missing?

Thanks,
Phil
_______________________________________________
alice-teachers mailing list
alice-teachers at lists.andrew.cmu.edu
To change settings or unsubscribe visit:
https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20241101/f06b81c4/attachment-0001.html>


More information about the alice-teachers mailing list