What are the differences between a struct and a class in
C++?
Answer Posted / ajit
In structures by default the member variables considered as
public where as in classes by default data members are
considered as private.
Structures doesn't provide the concept data encapsulation
but classes provides it.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Is facebook written in c++?
What is buffer and example?
Write about the role of c++ in the tradeoff of safety vs. Usability?
Is c++ slower than c?
What is flush programming?
What is the difference between equal to (==) and assignment operator (=)?
What is the difference between function overloading and operator overloading?
Write syntax to define friend functions in C++.
What is lazy initialization in c++?
How many ways can a variable be initialized into in C++?
How does class accomplish data hiding in c++?
Difference between inline functions and macros?
Can union be self referenced?
Do you know about latest advancements in C++ ?
What is a manipulator in c++?