0

Call class crom other packages

Hi If import a class (with name "myclass") from other package : Import com.sample.java.myclass; And we have one local class on current package with the same name (myclass) When we call myclass as: myclass obj=new muclass(); 1-Now what happen? And which call? 2- if we want call myclass on "com.sample.java" package how?

15th Jan 2019, 3:41 PM
Hadi
Hadi - avatar
1 Resposta
0
is your class declared public?
28th Apr 2019, 7:16 AM
CloudWay
CloudWay - avatar