Do I need to write all access modifiers in c#?
static class Node {
Node link;//Node * link;
int data;
public:
void setlink(Node next){...}
void display(){.....}
I want to use access modifiers section(public:
, protected:
)like in c++
how can I use it?
Do I have to write all of them?
public void setlink(Node next){...}
public void display(){...}
instead
public:
void setlink(Node next){....}
void display(){....}
Yes, you specify it on each member. Two good things about this:
See more on this question at Stackoverflow