Guest User

Untitled

a guest
Oct 18th, 2014
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.79 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace laibery
  7. {
  8.    public class CardIndex
  9.     {
  10.         public CardIndex(string book, string writer, string price, string quantity)
  11.         {
  12.             this.book = book;
  13.             this.writer = writer;
  14.             this.price = double.Parse(price);
  15.             this.quantity = int.Parse(quantity);
  16.         }
  17.         public string book
  18.         {
  19.            private set;
  20.             get;
  21.         }
  22.  
  23.         public string writer
  24.         {
  25.             private set;
  26.             get;
  27.         }
  28.  
  29.         public double price
  30.         {
  31.            private set;
  32.             get;
  33.         }
  34.         public int quantity
  35.         {
  36.             private set;
  37.             get;
  38.         }
  39.     }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment