Difference between Class and Struct.
Answer Posted / swetcha
The only difference between a struct and a class is in the
default access. By default, all the members of a struct are
public whereas in a class, al the members are private. The
same is true for the default inheritance type: a struct
entails public inheritance by default whereas a class
entails private inheritance.
| Is This Answer Correct ? | 98 Yes | 23 No |
Post New Answer View All Answers
Why shouldn’t I start variable names with underscores?
What are the benefits of organizational structure?
write a program to find out prime number using sieve case?
What is sorting in c plus plus?
What standard functions are available to manipulate strings?
Explain null pointer.
C program to find all possible outcomes of a dice?
What is the use of pragma in embedded c?
Why is a semicolon (;) put at the end of every program statement?
Explain how do you print an address?
Write a program to generate random numbers in c?
What will be your course of action for a push operation?
In c language can we compile a program without main() function?
What is adt in c programming?
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?