Light
A public class is one that can be accessed and used by any other class or program. It serves as the blueprint for creating objects and contains variables and methods.
congrats on reading the definition of public class. now let's actually learn it.
private class: This refers to a class that can only be accessed within its own file. Other classes cannot directly access its variables or methods.
When applied to variables or methods, it means they belong to the class itself rather than instances of the class.
inheritance: Inheritance allows one class (the child) to inherit properties and behaviors from another (the parent).