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
What is the difference between ienumerable and iqueryable?
can multiple catch blocks be executed for a single try statement?
Can I use ReaderWriterLock instead of Monitor.Enter/Exit for Threading?
What is a decimal in c#?
What are anonymous types in c#?
What is the use of thread join in c#?
What are escape sequences explain with example?
List out the differences between array and arraylist in c#?
What does protected internal access modifier mean?
What is .net console?
What is monitor in C#?
Does main have to be static c#?
Explain About Postback
What is the use of jit ? Jit (just - in - time) is a compiler which converts msil code to
Is void a class?