GeeCON Prague 2014*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Inheritance and package question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Inheritance and package question" Watch "Inheritance and package question" New topic
Author

Inheritance and package question

Bing Qiao
Greenhorn

Joined: Oct 24, 2006
Posts: 21
How to extend a class B in a non-default package from another class A in default package?

package scjp;

Class B extends A {
}

It doesn't compile!

Many thanks!
[ October 25, 2006: Message edited by: Bing Qiao ]
wise owen
Ranch Hand

Joined: Feb 02, 2006
Posts: 2023
How to import classes that are in the 'default' package?
Bing Qiao
Greenhorn

Joined: Oct 24, 2006
Posts: 21
Thanks!
 
GeeCON Prague 2014
 
subject: Inheritance and package question