claudio@cs.qmw.ac.uk (Claudio S. Nascimento) (01/31/91)
Suppose you define the following classes: Test1: with superclass Object and class variable X Test2: with superclass Object and class variable X If for some reason, we change the superclass of Test2 to be Test1, the system browser accepts. Shouldn't it give an error since both classes have a class variable with same name ? If not, why the system browser does not accept a subclass with a class variable named the same as its superclass? Claudio Nascimento | ARPA/Internet: claudio@cs.qmw.ac.uk Dept. of Computer Science | JANET: claudio@uk.ac.qmw.cs Queen Mary & Westfield College | Mile End Road | LONDON, E1 4NS | Office phone: 071-975 5244 ENGLAND |