• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Inheritance and package question

 
Bing Qiao
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2023
 
Bing Qiao
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic