Consider an entity as Customer. Let its attributes be Name, Contact address and Phone no. A function is responsible for setting and another for printing the values for an instance of this entity.
How to implement this this entity with its attributes and functions as a struct in C++ ?