Advertisement
touhid_xml

Overloading C#

Apr 17th, 2013
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.83 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9.  
  10. namespace OverLoading
  11. {
  12.     public partial class Form1 : Form
  13.     {
  14.         enum names
  15.         {
  16.             Touhid,
  17.             Shubho,
  18.             Anondo
  19.  
  20.         }
  21.         public Form1()
  22.         {
  23.             InitializeComponent();
  24.         }
  25.  
  26.         public void Message(String name)
  27.         {
  28.             MessageBox.Show(name);
  29.         }
  30.  
  31.         public void Message(int age)
  32.         {
  33.             MessageBox.Show(age.ToString());
  34.         }
  35.  
  36.         private void button1_Click(object sender, EventArgs e)
  37.         {
  38.             Message("Touhid");
  39.             Message(23);
  40.            
  41.            
  42.         }
  43.     }
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement