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
What is the default value of date?
What is the difference between array and arraylist c#?
How do you declare an interface in c#?
What is xml serialization and deserialization in c#?
who is a protected class-level variable available to?
Why delegates are type safe?
What are delegates and why are they required?
What is list collection in c#?
What is the difference between static class and abstract class in c#?
Is arraylist generic in c#?
What is sql transaction in c#?
What is difference between comparable and comparator?
Why do we need properties in c#?
What is difference between gridview and form view?
Is a decimal an integer?