Advertisement
hendraadem

Untitled

Jul 12th, 2020
1,247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.26 KB | None | 0 0
  1. public class bookEvent{
  2.  
  3.         private string[] eventList = new string[2];
  4.         private string eventName, eventPrice, customer, customerPhone;
  5.  
  6.         public void setEvent(string eName, string ePrice,  string eCust,  string ePhone){
  7.             this.eventName  = eName;
  8.             this.eventPrice = ePrice;
  9.             this.customer   = eCust;
  10.             this.customerPhone = ePhone;
  11.         }
  12.  
  13.         public void getEvent(){
  14.             Console.WriteLine(" ");
  15.             Console.WriteLine(" _________________________________________");
  16.             Console.WriteLine("|                                         |");
  17.             Console.WriteLine("|               YOUR TICKET               |");
  18.             Console.WriteLine("|_________________________________________|");
  19.             Console.WriteLine("|                                         ");
  20.             Console.WriteLine("| Event Name  : {0}", eventName           );
  21.             Console.WriteLine("| Event Price : {0}", eventPrice          );
  22.             Console.WriteLine("| Cust Name   : {0}", customer            );
  23.             Console.WriteLine("| Cust Phone  : {0}", customerPhone       );
  24.             Console.WriteLine("|_________________________________________");
  25.         }
  26.  
  27.  
  28.  
  29.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement