You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace InterfaceStudy.Examine
|
|
{
|
|
public class ClassA : I
|
|
{
|
|
public int i = 1;
|
|
|
|
public ClassA()
|
|
{
|
|
++ i;
|
|
}
|
|
|
|
void I.Print()
|
|
{
|
|
Console.WriteLine(i);
|
|
}
|
|
|
|
public virtual void Print()
|
|
{
|
|
Console.WriteLine(++i);
|
|
}
|
|
}
|
|
}
|