UML类图图示样例
代码对应:
Code
interface IFly
{
void Fly();
}
Code
interface ILanguage
{
void Speak();
}
Code
class WideGoose:IFly
{
}
Code
class Penguin:Bird
{
private Climate climate;
}
Code
class WideGooseAggregate
{
private WideGoose[] arrayWideGoose;
}
Code
class Bird
{
private Wing wing;
public Bird()
{
wing = new Wing();
}
}
Code
abstract class Animal
{
public Metabolism(Oxygen oxygen,Water water)
{
}
}