mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2025-12-06 05:32:03 +01:00
12 lines
231 B
C#
12 lines
231 B
C#
|
|
using System.Xml.Serialization;
|
|||
|
|
|
|||
|
|
namespace Packt.Shared;
|
|||
|
|
|
|||
|
|
[XmlInclude(typeof(Circle))]
|
|||
|
|
[XmlInclude(typeof(Rectangle))]
|
|||
|
|
public abstract class Shape
|
|||
|
|
{
|
|||
|
|
public string? Colour { get; set; }
|
|||
|
|
public abstract double Area { get; }
|
|||
|
|
}
|