Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public abstract class BaseThing
- {
- public string Name { get; set; }
- public string Description { get; set; }
- public decimal Cost { get; set;}
- public abstract void MethodThatDoesThings()
- {
- }
- }
- public class DerivedThing
- {
- Name = "Name1";
- Description = "Description1";
- Cost = 1.00;
- public override void MethodThatDoesThings()
- {
- //Actually does things
- }
- }
Add Comment
Please, Sign In to add comment