Difference between Class and Struct.
Answer Posted / naresh kukreti
1)measure difference between structure and class is that
the structure doesn't inherit but class is inherit
2)by default the data members of structure are public but in
case of class data members are private
3) Class is much secure ,but structure is not secure
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What's the total generic pointer type?
how to make a scientific calculater ?
How can you increase the size of a dynamically allocated array?
What is void main () in c?
What is string function in c?
What is pass by reference in functions?
When the macros gets expanded?
What does double pointer mean in c?
WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?
What is the difference between functions getch() and getche()?
If errno contains a nonzero number, is there an error?
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.
What is maximum size of array in c?
When should we use pointers in a c program?
What are conditional operators in C?