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


Please Help Members By Posting Answers For Below Questions

What's the total generic pointer type?

614


how to make a scientific calculater ?

1565


How can you increase the size of a dynamically allocated array?

641


What is void main () in c?

732


What is string function in c?

540






What is pass by reference in functions?

324


When the macros gets expanded?

788


What does double pointer mean in c?

582


WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

1859


What is the difference between functions getch() and getche()?

621


If errno contains a nonzero number, is there an error?

805


List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.

2303


What is maximum size of array in c?

584


When should we use pointers in a c program?

633


What are conditional operators in C?

627