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

Do you know what are bitwise shift operators in c programming?

1074


Write a program on swapping (100, 50)

1076


Why c is called procedure oriented language?

1006


What is use of pointer?

1023


#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??

1919


the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none

1015


the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function

1282


When a c file is executed there are many files that are automatically opened what are they files?

1067


Explain the difference between exit() and _exit() function?

1124


Why c is called top down?

1107


what is the format specifier for printing a pointer value?

986


Why is sprintf unsafe?

1008


What is const volatile variable in c?

999


What does nil mean in c?

1195


How many types of sorting are there in c?

1022