Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

virtual method

A method a derived class is allowed to replace.

A virtual member can be overridden in a derived class with override; calls through a base-typed reference run the most-derived override.

Examples

  • public virtual decimal Shipping() => 5m; in the base class, public override decimal Shipping() => 0m; in a derived one.

Read the full section →