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
Define stl.
In what scenario does the Logical file and Physical file being used?
write a program to convert a decimal number in to its equivalent binary number?
what is template and type convertion
What are the components of stl?
What is meant by stl in c++?
How connect plc and pc through software
What are the various types of stl containers?
sir please send me bpcl previous question papers
help me i need a c++ program which takes sequesnce of characters and outputed sequence of their token taypes, work same compiler in lexical analysis phase
What is a list in c++ stl?
What is a stl vector?
What are the symptoms of stl?
What is the stl, standard template library?
write a program that will accept a number and print.its equivalent in words the maximum input number is 9999