I'm having the hardest time grasping the theory of Java and its OOP aspect. Can anybody help me to understand how to call another object from the main object?
Suppose I have two objects, one is the main program, we'll call it Main.java; another is the object that does all the calculations of sales, compensation, etc...we'll call this SalesPerson.ja
va object. This object has a cacTotalSales() method.
How do I properly call up the SalesPerson.ja
va object from the Main to display its calcTotalSales() method in a System.out.pri
ntln() statement?
I think I just came to the realization that I'm not so good at OOP languages (or any languages other than HTML/CSS)...
![Sad :(](https://www.pebhmong.com/forum/Smileys/Lots_O_Smileys/sad.gif)
Help me to understand! Thanks!