Answers for "how to access another java class in java"

0

how to access methods from another class in java

public class Alpha extends Beta{
     public void DoSomethingAlpha() {
          DoSomethingBeta();  //?
     }
}
Posted by: Guest on December-22-2020
-2

how to access methods from another class in java

public class Alpha {
     public void DoSomethingAlpha() {
          Beta cbeta = new Beta();
          cbeta.DoSomethingBeta();  //?
     }
}
Posted by: Guest on December-22-2020

Code answers related to "how to access another java class in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language