The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
November 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

why do women always say UPS guys are sexy?

Posted by Chin Loong on November 20, 2001 at 6:11 AM

1) What classpath i should set?

both. set your classpath to pkg1 AND pkg2


2) Tell me the Package statements for both the classes

for SUPERCLASS:
package pkg1;

public class SUPERCLASS {
...
}

for SUBCLASS:
package pkg2;

import pkg1;

public class SUBCLASS extends SUPERCLASS {
...
}

*or*
package pkg2;

public class SUBCLASS extends pkg1.SUPERCLASS {
...
}


3) Also tell me the commands to run subclass being in pkg2

???
i don't understand what u mean..



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us