i know structures are basically used for holding data members whereas classes can hold both functions and data members.
but contrary to the definition of structures can they also hold functions??
i read that they can but there wasn't any explanation about it.
hopefully,some of few can come up with the explanation.