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
How do you sort a sort function in c++ to sort in descending order?
what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?
Explain some examples of operator overloading?
Explain deep copy and a shallow copy?
Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?
What is pointer to array in c++?
When one must use recursion function? Mention what happens when recursion functions are declared inline?
What is c++ redistributable?
Program to check whether a word is a sub-string or not of a string typed
Do you know the problem with overriding functions?
How is c++ used in the real world?
What are the differences between new and malloc?
What is a terminating character in c++?
What is the difference between a pointer and a link in c ++?
Can we make copy constructor private in c++?