Difference between Structure and Class in C++?
Answer Posted / ashish raghuvanshi
Basically in C++ structure and class are same but with some
minor diffrences listed below:-
1. In classes all the members by default are private but in
structure members are public by default.
2. There is no term like constructor and destructor for
structs, but for class compiler creates default if you
don't provide.
| Is This Answer Correct ? | 79 Yes | 14 No |
Post New Answer View All Answers
i wanted to know about questions about c,c++ , which is required for placements.... im a fresher
Is there any error below, its a code to delete all entires from a map #include
Is stl part of c++ standard?
What is the use of stl?
how to use C++?
totoo po ba ang manga aliens!
What is a standard template library (stl)?
how to making game in c++ ?
How do you convert stl to steps?
What is stl in c++ with example?
How stl is different from the c++ standard library?
What two types of containers does the stl provide?
How is stl different from c++ standard library?
write a program to convert a decimal number in to its equivalent binary number?
To modify an, existing worksheet. What steps are involved for: 1. Inserting and deleting rows and columns. 2. Printing cell formulas 3Jld displayed values 3. Using the page setup command