Guest User

Untitled

a guest
Nov 20th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. public abstract class BaseThing
  2. {
  3. public string Name { get; set; }
  4. public string Description { get; set; }
  5. public decimal Cost { get; set;}
  6.  
  7. public abstract void MethodThatDoesThings()
  8. {
  9.  
  10. }
  11. }
  12.  
  13. public class DerivedThing
  14. {
  15. Name = "Name1";
  16. Description = "Description1";
  17. Cost = 1.00;
  18.  
  19. public override void MethodThatDoesThings()
  20. {
  21. //Actually does things
  22. }
  23. }
Add Comment
Please, Sign In to add comment