Updated Interfaces (markdown)
This commit is contained in:
Родитель
f24af08f29
Коммит
4750909c50
|
@ -234,7 +234,7 @@ interface Square extends Shape {
|
|||
sideLength: number;
|
||||
}
|
||||
|
||||
var square: Square;
|
||||
var square = <Square>{};
|
||||
square.color = "blue";
|
||||
square.sideLength = 10;
|
||||
```
|
||||
|
@ -254,7 +254,7 @@ interface Square extends Shape, PenStroke {
|
|||
sideLength: number;
|
||||
}
|
||||
|
||||
var square: Square;
|
||||
var square = <Square>{};
|
||||
square.color = "blue";
|
||||
square.sideLength = 10;
|
||||
square.penWidth = 5.0;
|
||||
|
|
Загрузка…
Ссылка в новой задаче