hi,
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.
sahil1991
0
Light Poster
Recommended Answers
Jump to PostaCTUALLY in C language structures cannot hold functions.
But when u come to c++, there is very little difference between a structure and a class.
U can have functions in Structures in C++ and u can implement many OOPS concepts in structures, the same way as in a …
All 4 Replies
stevanity
4
Posting Whiz in Training
gerard4143
371
Nearly a Posting Maven
stevanity
4
Posting Whiz in Training
sahil1991
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.