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 the use of data hiding?
Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement
What are enumerations?
How is new() different from malloc()?
What does namespace mean in c++?
What is class and structure in c++?
What is meant by the term name mangling in c++?
Why ctype h is used in c++?
How to tokenize a string in c++?
Write a program to add three numbers in C++ utilizing classes.
What is the history of c++?
Which function cannot be overloaded c++?
Why would you use pointers in c++?
Do vectors start at 0 c++?
How do we balance an AVL Tree in C++?