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
srinath
NA
144
0
Access Parent class method using child class object
Oct 15 2011 11:55 AM
Hi,
I have a scenario as given below.
Class A
{
public void method()
{
Console.WriteLine("A");
}
}
Class B :A
{
public void method()
{
Console.WriteLine("B");
}
}
Here in main method of a class, I create an object for Class B and I want to access method() of Class A.
i.e B b = new B(); Using this 'b' object I want to access the method() of Class A.
I am unable to do this please give me the solution
Reply
Answers (
2
)
How to get the port no. of a WebSite
2010 web datacontext item