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
0
326.2k
Interface
Sep 21 2013 6:37 PM
http://www.dotnetperls.com/interface
Following program is given in the above website (1st program)
Instance is
IPerl
perl =
new
Test
(); it is also giving same output with
Test
perl =
new
Test
();. How can these differences be explained? Problem is highlighted.
using System;
interface IPerl
{
void Read();
}
class Test : IPerl
{
public void Read()
{
Console.WriteLine("Read");
}
}
class Program
{
static void Main()
{
IPerl
perl = new Test(); // Create instance.
perl.Read(); // Call method on interface.
Console.ReadKey();
}
}
Reply
Answers (
2
)
RowDataBound?
why main() contains static?