What is the difference between Class and Structure?
Answer Posted / vinod
The difference between a class and a structure is that, by
default, all of the members of a class are private and also private,public and protected but in structure by
default, all of the members of a structure are public.
| Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
Where and why do I have to put the "template" and "typename" keywords?
What jobs can you get with a c++ certification?
Does c++ support multilevel and multiple inheritances?
Define what is constructor?
What is string in c++ programming?
How did c++ get its name?
What are the advantages of c++ over c?
When you overload member functions, in what ways must they differ?
What is the iunknown interface?
What is the purpose of extern storage specifier?
Explain storage qualifiers in c++.
Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?
What is implicit conversion/coercion in c++?
What does getch() do according to the ANSI C++ standard a) Reads in a character b) Checks the keyboard buffer c) Nothing in particular (Its not defined there)
What is a pdb file?