Skip to content
How to access one class from another class that's in the same project
Profile icon
NimishP

I want to make a project that consists of different games in different classes. How would I do this?

Here is the link to my repl
https://repl.it/@NimishP/Games

I want to be able to go from one class to another when I run the code.

Thanks,
NimishP

You are viewing a single comment. View All
Profile icon
CARLOS-ALFRED13

you need use import classname: but the class that you want to import needs be "public"