Answers for "how to access a method from another class"

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 a method from another class"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language