[Xotcl] More usage questions

Laurent Duperval laurent.duperval at netergynet.com
Mon Dec 11 14:19:53 CET 2000


Hi,

How do I do aggregation of objects? For example, in Java I have

class Foo {
  Class1 c1;
  Class2 c2;
}

where Class1 and Class2 are two other classes. How do I create the same
effect in XOTcl? I've tried a few variations but I don't get the effect I
want so I guess I'm doing wrong.

Also, how do you create and use private data? By this I mean data (and
possibly methods) which are only accessible by the class or the object.

Thanks,

L

-- 
MY EMAIL ADDRESS HAS CHANGED --> UPDATE YOUR ADDRESSBOOK

Laurent Duperval                   "Montreal winters are an intelligence test,
Netergy Networks - Java Center            and we who are here have failed it."
Phone: (514) 282-8484 ext. 228                                   -Doug Camilli
mailto:laurent.duperval at netergynet.com           Penguin Power!






More information about the Xotcl mailing list