Computer Science, asked by thewakebakecake, 3 months ago

How to connect two classes in java?

Answers

Answered by ihelppeople
1

One Java file can consist of multiple classes with the restriction that only one of them can be public. As soon as you remove public keyword from your classes, you can combine them into a single Java file

Similar questions