#super class and sub class
11 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @hollow moon! Please use
/closeor theClose Postbutton above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Each class in its own file is the standard. You can have nested classes as you discovered but I wouldn't encourage it
oh they are called nested classes
in your screenshot, you don't have nested classes but two classes next to each other in the same file
this is possible only if the second class isn't public
oh i see
(you can only have 1 public top-level class per file, that matches the file's name)
nested classes are a thing, they're under classes & objects there ^