Skip to main content

DerivedClass Class

Namespace: CloudNimble.DotNetDocs.Tests.Shared.BasicScenarios
Assembly: CloudNimble.DotNetDocs.Tests.Shared.dll

📋 Definition

public class DerivedClass : BaseClass

📝 Summary

Concrete implementation of BaseClass demonstrating method overriding and inheritance patterns.

🎯 Members

VirtualMethod (Override)

public override void VirtualMethod()
Overrides the virtual method from BaseClass with custom implementation.

AbstractMethod (Override)

public override void AbstractMethod()
Required implementation of the abstract method from BaseClass.

NewMethod

public void NewMethod()
Additional method specific to DerivedClass.

💡 Usage Example

var derived = new DerivedClass();
derived.VirtualMethod();    // Calls overridden version
derived.AbstractMethod();   // Calls implemented version
derived.NewMethod();        // Calls new method

BaseClass polymorphic = derived;
polymorphic.VirtualMethod();    // Still calls overridden version
polymorphic.AbstractMethod();   // Still calls implemented version