Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.77 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace ConsoleApplication1
  7. {
  8.     public class CD
  9.     {
  10.         private string artist, titel, genre, skivbolag;
  11.         private int utgivningsår, antallåtar;
  12.         private double speltid;
  13.  
  14.  
  15.  
  16.  
  17.         public CD()
  18.         {
  19.         }
  20.         public CD(string artist, string titel, string genre, int utgivningsar,
  21.         string skivbolag, int antallatar, double speltid)
  22.         {
  23.            artistText = artist;
  24.  
  25.  
  26.         }
  27.  
  28.         public String Artist
  29.         {
  30.             get { return artistText; }
  31.             set { artistText = value; }
  32.         }
  33.  
  34.         public void printBrief()
  35.         {
  36.             Console.WriteLine(artist());
  37.         }
  38.     }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement