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 / swetcha

The only difference between a struct and a class is in the
default access. By default, all the members of a struct are
public whereas in a class, al the members are private. The
same is true for the default inheritance type: a struct
entails public inheritance by default whereas a class
entails private inheritance.

Is This Answer Correct ?    98 Yes 23 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why shouldn’t I start variable names with underscores?

1113


What are the benefits of organizational structure?

1064


write a program to find out prime number using sieve case?

2137


What is sorting in c plus plus?

1025


What standard functions are available to manipulate strings?

1205


Explain null pointer.

1189


C program to find all possible outcomes of a dice?

2410


What is the use of pragma in embedded c?

1098


Why is a semicolon (;) put at the end of every program statement?

1124


Explain how do you print an address?

1205


Write a program to generate random numbers in c?

1154


What will be your course of action for a push operation?

1154


In c language can we compile a program without main() function?

1178


What is adt in c programming?

1225


What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

1186