The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2002

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:

Not quite...

Posted by Hiran on January 25, 2002 at 10:29 AM

Thanks for the help Anil. I somewhat understand what you're doing, but not fully. I can just try some stuff and hope I get it correctly. Thanks again.
Hiran

> ===
> // A.java

> package com.anil.storeAClasses;

> public class A
> {
> }
> ===

> // C.java

> package com.anil.storeCClasses;

> public class C
> {
> }

> ===
> // B.java

> package com.anil.storeBClasses;

> import com.anil.hiransquestion.storeAClasses.A;
> import com.anil.hiransquestion.storeCClasses.C;

> public class B extends A
> {
> C didYouGetItHiran = new C();
> }
> ===

> c:\src\com\anil\storeAClasses\A.class
> c:\src\com\anil\storeBClasses\B.class
> c:\src\com\anil\storeCClasses\C.class

> c:\src> set CLASSPATH=c:\src;%CLASSPATH%

> c:\src> java B






Replies:

Sponsored Links



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