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
How can you return multiple values from a function?
How can you determine the maximum value that a numeric variable can hold?
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
Hai what is the different types of versions and their differences
What are reserved words?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
Differentiate between declaring a variable and defining a variable?
What is a 'null pointer assignment' error?
Linked lists -- can you tell me how to check whether a linked list is circular?
How do I convert a string to all upper or lower case?
What is the difference between int main and void main in c?
What is the meaning of typedef struct in c?
Difference between Function to pointer and pointer to function
What is the advantage of a random access file?
How can you increase the size of a dynamically allocated array?