Advertisement
Guest User

Untitled

a guest
Jun 9th, 2015
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.39 KB | None | 0 0
  1. namespace ServerTest
  2. {
  3.     public class GoldenEditionBook : Book
  4.     {
  5.         public GoldenEditionBook(string title, string author, double price)
  6.             : base(title, author, price)
  7.         {
  8.         }
  9.  
  10.         public override double ChangedPrice
  11.         {
  12.             get
  13.             {
  14.                 return base.ChangedPrice * 0.30 + this.Price;
  15.             }
  16.         }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement