|
-
Apr 25th, 2005, 07:29 AM
#1
Thread Starter
Lively Member
interface
im not sure what "interface does". ive tried finding help in tutorials but cant find anything that explains what it does.
could anyone explain what this code does?
public interface IAnimal {
int Legs { get; set; }
string Walk();
}
public class Dog : IAnimal {
public int Legs {
get {
return 4;
}
set {
}
}
public string Walk() {
return "I want to run";
}
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|