How to implement more than one class (java)? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to implement more than one class (java)?

Hello, I have to write a code that shows different scenarios of two masses (boxes) moving. the masses are connected to each other. I have a class for the boxes called Box.java and I want to use it in my main class Application.java but the main is already extended to JFrame. So my question is how do I implement box.java in Application with all its attributes and methods?

2nd May 2018, 12:46 PM
Valentina
0 Answers