Multiple Subclasses

How do I extend multiple classes from a SINGLE superclass. That is, I want to be able to update data in the superclass and have subclasses access the same data but manipulate it in a different way. I do not want to have to update each subclass with the same data. Or am I just way off
[298 byte] By [Boorisa] at [2007-11-27 4:39:02]
# 1
Hi,Don't try to extend, Try to create the object for the Present super subclass ( ie. try to put required function separate java class file) manipute the things using the in parameters .RegardsSuresh
surzhkumar.s@gmail.coma at 2007-7-12 9:49:34 > top of Java-index,Java Essentials,New To Java...
# 2

Ok, number a) What is a 'present super subclass'?

number b) My superclass has very lengthy arrays and my program is designed for a mobile device. Therefore, I dont want to duplicate this data in anyway, ie by creating a new superclass instances.

number c) Is my question clear?

Baffled, Booris.

Boorisa at 2007-7-12 9:49:34 > top of Java-index,Java Essentials,New To Java...
# 3

a) What is a 'present super subclass'?

If you what, u can put the required function from Present code (ie the code which you don't what to duplicate in a separate class) to one class if you wish, and try to create the object of the Newly written class in your new code for processing.

b) My superclass has very lengthy arrays and my program is designed for a mobile device.

Therefore, I dont want to duplicate this data in anyway,

ie by creating a new superclass instances.

Here i'am not asking you to extend the Superclass instead i am asking to create instance of the class.

c) Is my question clear?

I have partialy understood it will better if u explain me the sample code.

Is the changes for Develped code / Developing code

Regards

Suresh

surzhkumar.s@gmail.coma at 2007-7-12 9:49:34 > top of Java-index,Java Essentials,New To Java...
# 4
You have the wrong idea: composition is what you need, not inheritance. http://www.artima.com/designtechniques/compoinh.html
jsalonena at 2007-7-12 9:49:34 > top of Java-index,Java Essentials,New To Java...