tag:blogger.com,1999:blog-1415821286444392495.post1993967491518810103..comments2023-10-20T01:34:17.530-07:00Comments on VC++ - Visual C++ - Microsoft Visual C++ Interview Questions And Answers: What are the differences between a C++ struct and C++ class?Sumedhhttp://www.blogger.com/profile/11533458660230230361noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-1415821286444392495.post-54560292138644509262009-07-16T04:59:14.548-07:002009-07-16T04:59:14.548-07:00The only formal difference between class and struc...The only formal difference between class and structure is that in a class the members are private by default, while in a structure they are public by default. <br /><br />It is good to use Structre for data,classes for both datamembers and memberfunctions.Achyuthttps://www.blogger.com/profile/01018865356474469423noreply@blogger.com