What is the difference between Class and Structure?

Answer Posted / hardik savani

class is refrains type and structure is value type most op
us variable public and private in class.
public variable is use any component and private variable is use only class property

Is This Answer Correct ?    6 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is objective c different from c++?

798


What's c++ used for?

602


Is c better than c++?

623


Do you know what are static and dynamic type checking?

624


Will a catch statement catch a derived exception if it is looking for the base class?

567






What is using namespace std in cpp?

551


What is an accessor in c++?

624


What is the use of endl in c++?

601


What are manipulators in c++ with example?

591


Mention the storage classes in c++.

653


Can I make ios apps with c++?

562


Does c++ have foreach?

531


What is the best c++ book?

714


Why c++ is so important?

613


How would you use qsort() function to sort an array of structures?

726