Sunday, July 4, 2010

Virtual or abstract?

First post in this blog.


One of my friend asked me this question.

class A
{
XXX method1()
......
}


class B : A
{
override method1 ()
{
base.method1();
}
}

He says, how can we identify, XXX (written in front of method1 in class A) is virtual or abstract. Give justification.

No comments:

Post a Comment