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...

what are the differences b/w structure and class?

Answer Posted / sai laxman

class ex:-
class classname
{
int a;
float b;
}
struct {
int a;
int b;
}struct name;

In the struct all members are by default public,
in the class we can deference it private,public,protected.
While Inheriting from the structure all the members are
public by default but in class it depends upon the data
access modifiers.

Is This Answer Correct ?    7 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is unboxing an implicit conversion?

1033


Why abstraction is used in c#?

931


Is c and c# the same?

921


What is a decimal c#?

872


What is the difference between a constant and a static readonly field?

1008


What is difference between array and arraylist c#?

1055


What is the use of jit ? Jit (just - in - time) is a compiler which converts msil code to

962


What is the usage of transponders?

965


What are the various components in crystal reports?

959


How many digits are in an integer?

872


How to use nullable types in .net?

995


Explain About Iunknown interface Queue

992


Write a C# program to find the Factorial of n

988


What is difference between internal and protected internal in c#?

949


Why do we need reflection in c#?

924