What is the difference between class and structure?

What is the difference between class and structure?

Many DIff are there :
> In C Structure is bassically used to bundle different type of data types together to perform a particular functionality. But In case of C++ extended the structure to contain functions also. The major difference is that all declarations inside a structure are by default public.
And we are talking about the class, It is a successor of Structure. By default all the members inside the class are private. 

By:Umang
Date:2007-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related C Subjective Links

C Subjective interview questions and answers for experienced and fresher