Why two classes for objects
Can you reming me why do we create myclass and without it object does not work(outputs error)? I get that Vehicle class has attributes and methods which can be used in objects Objects are created using "new" method (if I understood this correctly) So the objects of Vehicle class are created in different class (in this app we use MyClass to define objects)? Is it a must? Why? 1.Does it mean that main class is Vehicle and sub class is MyClass which holds objects inside of it? 2.Does it mean that MyClass is object of Vehicle class? 3.If It is true so object of Vehicle class has attributes and methods upon which we make actions? 4.So main method is used for execution of actions and is put only in these classes which are "bottom"? 5.So OOP is like a pyramid, from top to bottom mostly times expanding? Kindly let me connect the parts in my head by confirming or explaining the details Thx