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
Kumar Gaurav
NA
23
18k
use of virtual/override on class variables as I can
Oct 10 2015 2:48 AM
Why can't I use virtual/override on class variables as I can on methods?
Like for example we have 2 classes
class A
{
public virtual int x;
}
class B : A
{
public override int x;
}
when i compile this above code it display error like "The modifier 'virtual' is not valid for this item"???
why display this type of error?? please help me in details .
Reply
Answers (
3
)
subject:- send msg c# to whatsapp..
Read Mobile Number in Text , Doc & Excel file .