mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2026-04-06 06:43:47 +00:00
Initial commit
This commit is contained in:
parent
bc96ccb183
commit
18f89e91d4
62 changed files with 1661 additions and 2 deletions
10
vscode/Chapter06/Ch06Ex02Inheritance/Program.cs
Normal file
10
vscode/Chapter06/Ch06Ex02Inheritance/Program.cs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
using Packt.Shared;
|
||||
|
||||
Rectangle r = new(height: 3, width: 4.5);
|
||||
WriteLine($"Rectangle H: {r.Height}, W: {r.Width}, Area: {r.Area}");
|
||||
|
||||
Square s = new(5);
|
||||
WriteLine($"Square H: {s.Height}, W: {s.Width}, Area: {s.Area}");
|
||||
|
||||
Circle c = new(radius: 2.5);
|
||||
WriteLine($"Circle H: {c.Height}, W: {c.Width}, Area: {c.Area}");
|
||||
Loading…
Add table
Add a link
Reference in a new issue