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
Maha
NA
600
71.5k
Interface
Mar 25 2015 3:05 PM
It is said that public modifier is used to access a class from outside.
public void
IA1
.Foo1() method is not accessible from the main method. But
void
IA1.Foo1() method is accessible from the main method. Please tell me reason. Problem is highlighted.
using System;
interface IA1
{
void Foo1();
}
class CA : IA1
{
public void IA1.Foo1()
{
Console.WriteLine("In Foo2 of CA");
}
}
class Program
{
static void Main(string[] args)
{
IA1 a1; CA a;
a = new CA();
a1 = new CA();
a1.Foo1();
Console.ReadKey();
}
}
Reply
Answers (
5
)
Save ComboBox to Database and retrieve the information back.
increment value for each click