Is struct used in C++?

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.

Sizin İçin Seçtik  Is abstract class useless?

Leave a Reply

Your email address will not be published. Required fields are marked *