|
Listing 12-8 extracted from chapter
Inheritance, polymorphism and abstraction
Listing 12-7< > Listing 12-9
This listing can be compiled with the command line: csc.exe /target:exe Example_12_8.cs Errors: 0 Warnings: 0
Example_12_8.cs
interface I {}
class C : I {}
class Program {
static void Main() {
I c = new C();
c.GetHashCode();
object o = c;
}
}
Copyright Patrick Smacchia 2006 2007
|