Difference between Class and Struct.
Answer Posted / swetcha
The only difference between a struct and a class is in the
default access. By default, all the members of a struct are
public whereas in a class, al the members are private. The
same is true for the default inheritance type: a struct
entails public inheritance by default whereas a class
entails private inheritance.
Is This Answer Correct ? | 98 Yes | 23 No |
Post New Answer View All Answers
How do you generate random numbers in C?
What is the best style for code layout in c?
Is this program statement valid? INT = 10.50;
How can variables be characterized?
What is a class c rental property?
What extern c means?
Why is structure padding done in c?
What is an array in c?
What is meant by recursion?
Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014 Npu university
What are the different categories of functions in c?
How to create struct variables?
How do we print only part of a string in c?
Is Exception handling possible in c language?
Explain union. What are its advantages?