In C++, classes and structs are blueprints that are used to create the instance of a class . Structs are used for lightweight objects such as Rectangle, color, Point, etc. Unlike class, structs in C++ are value type than reference type.
In C++, classes and structs are blueprints that are used to create the instance of a class . Structs are used for lightweight objects such as Rectangle, color, Point, etc. Unlike class, structs in C++ are value type than reference type.