How do I access an object from another class in java?

后端 未结 0 1854
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-07 08:28

How do I access an object from another java file?

Class1.java:

public class Class1 {
Classx obj = new Classx(); //Classx is another public class, in an         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题