TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
jkjsha ahsa
NA
24
26.1k
about class variables
Nov 3 2009 6:43 PM
i want to know if there is code i write befor class variables to make them all public or private or any access modifir
like this in c
class example
{
public
{ string m;
int num;
} // m and num are public
}
this code is easir than these in c # as i write public once
the same code in c#:
class example{
public
string m;
public
int num;
}
in brief i want to know if there is code in c# don't make me to write the access modifier like "public" more than one time
Reply
Answers (
4
)
Having trouble refreshing database without restarting application
Retrieve image path from MYSQL and display one by one, Please help!