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
in object oriented programming, how would you describe encapsulation?
How many kinds of elements an array can have?
What is difference between an Structure and Class?
Why do we use readonly in c#?
What is class and object c#?
Define mutex in C#?
What is the use of console readkey in c#?
What is single dimensional array in c#?
what is a structure in c#
Why delegate is used in c#?
What is the difference between proc. Sent by val and by sub?
What is reflection c#?
Can you have more than one namespace in c#?
Is overriding of a function possible in the same class?
What is the default boolean value in c#?