Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
inheritance?
Old
jlucas
Guest
 
Status:
Posts: n/a
Default inheritance? - 07-08-2006, 12:08 PM

the textbook (page 101) talks about adding methods to a class and then using this to create a new "enhanced" class. This process is described using the term "inheritance". Isn't this a mis-use of the term? any changes to the original class will not be reflected in the second class. True inheritance is much more powerful. won't this careless use of terminology lead to confusion for students?

cheers, Joan
   
Reply With Quote
Old
rovettoa
Guest
 
Status:
Posts: n/a
Wink 07-10-2006, 11:15 AM

You can save the object as a new 2nd generation object(class) then use the new and improved version to create more 3rd generation objects, thereby implementing inheritance.
   
Reply With Quote
Old
lanceA
Guest
 
Status:
Posts: n/a
Default 07-17-2006, 07:58 PM

Another way of looking at it Joan, is to say that ALICE is a 'means to an end' - ALICE provides a visual means of teaching students the BASIC effects of Java's (OOPs) Inheritance mechanisms. It is NOT true inheritance, but it is the beginning concept that might help students to later move more easily into polymorphism, etc. Once the student has a good understanding of the basics they will possibly be better prepared should they need to learn about "a pointer to a pointer to a variable".

ALICE is a beginning teaching mechinism - I don't recommend it be used for satellite guidance systems.

Good luck.
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.