14 years, 5 months ago
Highlights
14 years, 5 months ago
14 years, 5 months ago
If Bar extends Foo, and you have a variable a of type Bar, you can cast it into a Foo type. You need the inheritance, not just the same fields. My advice is to rethink your desi…
14 years, 5 months ago
An interface only defines the behavior of a class, not the state. In other words, an interface doesn't (can't) have variables, only methods. It's basically a class c…
14 years, 5 months ago
In C# you use interfaces instead of inheriting from multiple base classes. What is it that you're trying to do? If you wind up with multiple inheritance in your design, you…
14 years, 5 months ago
Latest Activity
If Bar extends Foo, and you have a variable a of type Bar, you can cast it into a Foo …
14 years, 5 months ago
An interface only defines the behavior of a class, not the state. In other words, an interface doesn't (can't) have …
14 years, 5 months ago
In C# you use interfaces instead of inheriting from multiple base classes. What is it that you're trying to do? …
14 years, 5 months ago