Java: How to access methods from another class
You need to somehow give class Alpha a reference to cBeta. There are three ways of doing this. 1) Give Alphas a Beta in the constructor. In class Alpha write: and call cAlpha = new Alpha(cBeta) from main() 2) give Alphas a mutator that gives them a beta. In class Alpha write: and call cAlpha … Read more