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 a hash table in c#?
How to parse a date time string?
How do you remove white spaces from a string?
How do you specify a custom attribute for the entire assembly?
When should you use generics?
How to sign an assembly with strong name?
When Should You Call The Garbage Collector In .net?
What is the .net datatype that allows the retrieval of data by a unique key?
what is the difference between interface and multiple interface?
What is void in c#?
How much time will it take to learn unity?
Define satellite Assembly?
What is an extension method in c#?
who is a protected class-level variable available to?
What is the difference between C# 3.5 and C# 4.0?