What's the point of a struct? I mean, isn't it basically the same thing as a class? So what it's used for?
server_crash 64 Postaholic
Recommended Answers
Jump to Post>So the only difference is that members of a struct are public, and members of a class are private...
Inheritance defaults to private for classes and public for structures too. Just remember that the default access for classes is private and for structures it's public.
All 8 Replies
Rashakil Fol 978 Super Senior Demiposter Team Colleague
Dave Sinkula 2,398 long time no c Team Colleague
server_crash 64 Postaholic
Narue 5,707 Bad Cop Team Colleague
server_crash 64 Postaholic
Stoned_coder 6 Junior Poster
Narue 5,707 Bad Cop Team Colleague
server_crash 64 Postaholic
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.