Facebook
From Zoltán Török, 6 Months ago, written in C#.
This paste is a reply to Working with strings from Palma - view diff
Embed
Download Paste or View Raw
Hits: 176
  1. namespace Name{
  2.     class Information{
  3.         private static string Name = "Zoltan";
  4.         private static string BirthDate= "03/02/2000";
  5.         private static string Hobby = "Reading";
  6.  
  7.         public static void MyPresentation(){
  8.             string Profile = $"Name: {Name}\nBirth Date: {BirthDate}\nFavourite Hobby: {Hobby}";
  9.             Console.WriteLine(Profile);
  10.         }
  11.     }
  12.     class MainClass{
  13.         static void MySong(){
  14.             string Song = @"
  15.        Come join the murder
  16.        Come fly with black
  17.        We'll give you freedom
  18.        From the human trap
  19.        Come join the murder
  20.        Soar on my wings
  21.        You'll touch the hand of God
  22.        And He'll make you king
  23.        And He'll make you king";
  24.             Console.WriteLine(Song);
  25.         }
  26.        
  27.  
  28.         static void Main(){
  29.  
  30.             Information.MyPresentation();
  31.             Console.WriteLine("\nVerse:");
  32.             MySong();
  33.         }
  34.     }
  35. }