GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Placement Papers  >  TCS  >  C

 Print  |  
Question:  difference between class and structure



February 02, 2007 08:49:39 #7
 winny gupta   Member Since: February 2007    Total Comments: 8 

RE: difference between class and structure
 
Firstly, a class is not declared in C.Secondly, in C++, the main difference is all the data members and member functions in classes are private by default whereas for structure they are public.
     

 

Back To Question