Ivan_Bochev

RockConcerts

Jun 17th, 2021 (edited)
738
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package mc;
  2.  
  3. public class RockConcerts implements Concert {
  4.     private String band;
  5.     private String vocalist;
  6.     private String bassist;
  7.     private String guitarist;
  8.     private String drummer;
  9.     private String genre;
  10.     private double ticketPrice;
  11.     private int ticketCount;
  12.  
  13.     public RockConcerts(String band, String vocalist, String bassist, String guitarist, String drummer, String genre,
  14.             double ticketPrice, int ticketCount) {
  15.         this.band = band;
  16.         this.vocalist = vocalist;
  17.         this.bassist = bassist;
  18.         this.guitarist = guitarist;
  19.         this.drummer = drummer;
  20.         this.genre = genre;
  21.         this.ticketPrice = ticketPrice;
  22.         this.ticketCount = ticketCount;
  23.     }
  24.  
  25.     public String getBand() {
  26.         return this.band;
  27.     }
  28.  
  29.     public void setBand(String band) {
  30.         this.band = band;
  31.     }
  32.  
  33.     public String getVocalist() {
  34.         return this.vocalist;
  35.     }
  36.  
  37.     public void setVocalist(String vocalist) {
  38.         this.vocalist = vocalist;
  39.     }
  40.  
  41.     public String getBassist() {
  42.         return this.bassist;
  43.     }
  44.  
  45.     public void setBassist(String bassist) {
  46.         this.bassist = bassist;
  47.     }
  48.  
  49.     public String getGuitarist() {
  50.         return this.guitarist;
  51.     }
  52.  
  53.     public void setGuitarist(String guitarist) {
  54.         this.guitarist = guitarist;
  55.     }
  56.  
  57.     public String getDrummer() {
  58.         return this.drummer;
  59.     }
  60.  
  61.     public void setDrummer(String drummer) {
  62.         this.drummer = drummer;
  63.     }
  64.  
  65.     public String getGenre() {
  66.         return this.genre;
  67.     }
  68.  
  69.     public void setGenre(String genre) {
  70.         this.genre = genre;
  71.     }
  72.  
  73.     public double getTicketPrice() {
  74.         return this.ticketPrice;
  75.     }
  76.  
  77.     public void setTicketPrice(double ticketPrice) {
  78.         this.ticketPrice = ticketPrice;
  79.     }
  80.  
  81.     public int getTicketCount() {
  82.         return this.ticketCount;
  83.     }
  84.  
  85.     public void setTicketCount(int ticketCount) {
  86.         this.ticketCount = ticketCount;
  87.     }
  88.  
  89.     @Override
  90.     public void performerInfo() {
  91.         System.out.println("\nBand's name: " + this.band);
  92.         System.out.println("Vocalist: " + this.vocalist);
  93.         System.out.println("Bassist: " + this.bassist);
  94.         System.out.println("Guitarist: " + this.guitarist);
  95.         System.out.println("Drummer: " + this.drummer);
  96.         System.out.println("Ticket price: " + this.ticketPrice);
  97.     }
  98.  
  99. }
RAW Paste Data