Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Difference between Class and Struct.

Answer Posted / naksh @tcs

The major difference between struct and class is :
Struct donot contain functions(methods) as its members.

Yes, by default members of struct are public and that of a
class are private.

Is This Answer Correct ?    33 Yes 79 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages and disadvantages of pointers?

1012


What are the functions to open and close the file in c language?

986


What is the -> in c?

955


Can we declare function inside main?

947


What is 02d in c?

1028


Is c dynamically typed?

1091


What is an identifier?

979


Which header file is essential for using strcmp function?

1423


Explain what is the benefit of using an enum rather than a #define constant?

1168


How can you tell whether two strings are the same?

1204


What is NULL pointer?

1040


What are the restrictions of a modulus operator?

1063


What is void c?

1013


Where can I get an ansi-compatible lint?

1100


What is the difference between abs() and fabs() functions?

1060