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
Chris Schinkoethe
NA
3
0
static inheritance
Oct 15 2009 6:26 AM
Hi, just a quick question about static inheritance: Suppose I have this code: /// abstract Class A { public static int myVar; } Class B : A { } Class C : A { } /// I understand that the static variable myVar in A, B and C is the same instance in all 3 classes, so if I change it in one class, it will also change in all the other classes. Is there any way to make them separate but keep them static in each class without declaring them in the derived classes? Thanks
Reply
Answers (
2
)
DropDown, Theme/Color Changer
Another method safer than StreamWriter and how can I save the file on another server (asp.net c sharp)