You create objects by declaring variables of the class type. Car myCar; allocates memory on the stack and calls the default constructor. This is just like declaring an int or string - the syntax is identical.
You can initialize objects with parameters if your class has a parameterized constructor: Car myCar("Tesla", 2024); passes arguments to the constructor. The constructor runs immediately when the object is created.
Objects on the stack destroy automatically when they go out of scope. If you need dynamic lifetime, allocate on the heap with new: Car* ptr = new Car(); Remember to delete ptr; when finished to prevent memory leaks.