Structures inheritance in C#
Forums:
interface IText {
string ToText();
}
struct Point: IText {
public int x, y;
public string ToText() {
return string.Format("x = {0}; y = {1}", x, y);
}
}
struct RedPoint: Point { } //<- Error
- Log in to post comments