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
Is unboxing an implicit conversion?
Why abstraction is used in c#?
Is c and c# the same?
What is a decimal c#?
What is the difference between a constant and a static readonly field?
What is difference between array and arraylist c#?
What is the use of jit ? Jit (just - in - time) is a compiler which converts msil code to
What is the usage of transponders?
What are the various components in crystal reports?
How many digits are in an integer?
How to use nullable types in .net?
Explain About Iunknown interface Queue
Write a C# program to find the Factorial of n
What is difference between internal and protected internal in c#?
Why do we need reflection in c#?