导包

不同包下的类,使用时要写全路径名,麻烦。

导包后就写个类就行了

 

 

 

 

格式:

  import cn.itcast.Teacher

 

 

posted @ 2022-01-22 13:28  大灰狼21  阅读(28)  评论(0)    收藏  举报