What is the difference between Class and Structure?
Answer Posted / swetcha
The difference between a class and a structure is that, by
default, all of the members of a class are private and, by
default, all of the members of a structure are public.
| Is This Answer Correct ? | 797 Yes | 102 No |
Post New Answer View All Answers
Why do we use the using declaration?
What is tellg () in c++?
Explain the difference between using macro and inline functions?
Are c and c++ different?
What are the advantage of using register variables?
What is the function of I/O library in C++ ?
What are pointers, when declared, intialized to a) NULL b) Newly allocated memory c) Nothing. Its random
what are the iterator and generic algorithms.
If I is an integer variable, which is faster ++i or i++?
What is pair in c++?
What is different in C++, compare with unix?
What is abstract keyword in c++?
Is sorted c++?
. If employee B is the boss of A and C is the boss of B and D is the boss of C and E is the boss of D. Then write a program using the Database such that if an employee name is Asked to Display it also display his bosses with his name. For eg. If C is displayed it should also display D and E with C?
What is virtual base class?