What is the difference between Class and Structure?
Answer Posted / bitdeveloper
<a
href="http://questionscompiled.com/answer.jsp?technology=cpp&qid=141">questionscompiled.com</a>
Classes and Structures in C++ are same except class defaults
to private and structures to public. They can have data
members, member function, this pointer, static member functions.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is a pointer how and when is it used?
What is the error in the code below and how should it be corrected?
What do you mean by translation unit?
What is the protected keyword used for?
What can I safely assume about the initial values of variables which are not explicitly initialized?
If a header file is included twice by mistake in the program, will it give any error?
write a porgram in c++ that reads an integer and print the biggest digit in the number
What does namespace mean in c++?
Why do we learn c++?
How a pointer differs from a reference?
What is the difference between an enumeration and a set of pre-processor # defines?
Which programming language is best?
Is java made in c++?
Explain class invariant.
What is stream and its types in c++?