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
What is data types c++?
Can I learn c++ without c?
Which is not a valid keyword a) public b) protected c) guarded
Does c++ cost money?
What can I safely assume about the initial values of variables which are not explicitly initialized?
By using c++ with an example describe linked list?
What are the defining traits of an object-oriented language?
Is map sorted c++?
What is runtime errors c++?
What is data structure in c++?
List the advantages of inheritance.
What is c++ programming language?
Where is atoi defined?
If dog is a friend of boy and boy is a friend of house, is dog a friend of house?
find the two largest values among the 6 numbers using control structures : do-while,for,if else,nestedif- else ,while. one or two of them.