Non-virtual interface pattern: Difference between revisions

Content deleted Content added
m Improved the comments in C# Example
C# example: add image
 
(One intermediate revision by the same user not shown)
Line 31:
}}</ref>
 
== C# Exampleexample ==
[[File:Non-virtual interface pattern.svg]]
 
<syntaxhighlight lang="c#" line="1">
public abstract class Saveable
Line 59 ⟶ 61:
protected override void CoreSave()
{
Console.WriteLine($"Saved customer {0Name} with credit limit {1Credit}", Name, Credit);
}
}