dotgnu-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[DotGNU]interfaces not working


From: prashant patel
Subject: [DotGNU]interfaces not working
Date: Mon, 18 Mar 2002 05:11:51 -0800 (PST)

below is a simple class which implements the interface
it compiles properly but at runtime
there is a exception "Uncaught Exception :
System.MissingMethodException.
Also I guess the interface part of the compiler does
not work at all , if i do not provide an
implementation for the public method it compilers
without an error.
Also is this is the right place to report bugs, if not
the please redirect.

using System;

interface IPnetClass
{
    void PrintMe();
}

class PnetClass : IPnetClass
{
    PnetClass()
    {

    }

    public void PrintMe()
    {
        Console.WriteLine("Printing..");
    }

    public static void Main()
    {
         PnetClass pclass = new PnetClass();
         pclass.PrintMe();
    }
}







__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]