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 is pointer to pointer in c language?
Why C language is a procedural language?
What are volatile variables in c?
What is the difference between memcpy and memmove?
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
Do variables need to be initialized?
What is c preprocessor mean?
Are enumerations really portable?
What is null pointer constant?
Do you know null pointer?
What is use of integral promotions in c?
Why can't I perform arithmetic on a void* pointer?
When c language was developed?
Explain what is dynamic data structure?
Can we compile a program without main() function?