HUMAN

July 30, 2008 – 11:02 am

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Text;

using System.Windows.Forms;

namespace Human

{

public partial class Form1 : Form

{

public Form1()

{

InitializeComponent();

}

private void button1_Click(object sender, EventArgs e)

{

Human x = new Human();

x.Name = textBox1.Text;

x.Gender = comboBox1.Text;

MessageBox.Show(x.Talk());

}

}

}

 

HUMAN.cs

using System;

using System.Collections.Generic;

using System.Text;

namespace Human

{

class Human

{

public enum HumanType

{

Male,

Female

}

private string name;

private string gender;

public static int humanCount = 0;public Human()

{

humanCount++;

}

public string Name

{

get

{

return name;

}

set

{

this.name = value;

}

}

public string Gender

{

get

{

return gender;

}

set

{

this.gender = value;

}

}

public string Talk()

{

return "Hello! my name is " + name + " and i am a " + gender+ ".\nCurrent number of instance of human "+ humanCount;

}

}

}


  1. 3 Responses to “HUMAN”

  2. Dr. Josephine M. Bandalan
    Dean – BMLS Department
    San Pedro College
    Davao City

    Madam,

    We, The following students with consent of our parents would like to request your good office to kindly give us a chance to pass Math 100 by offering this same subject this semester.

    Hope you’ll consider our request. Thank you in advance and more power to you Madam.

    Sincerely yours,

    By NIKO on Nov 9, 2008

  3. Congratulation to:

    ITE Programming Team
    Ronal Borla-BSIT3
    Dennis Claro-BSCS4
    Analie Maputi-BSCS3

    For being the 2nd Place in the Mindanao Wide Programming Contest held at the Ateneo de Davao University – February 21, 2009.

    Sponsored by the Council of Deans for IT Education in Region XI (CDITEXI), together with the Commission on Higher Education Region XI (CHEDXI), and the Philippine Society of IT Education in Region XI (PSITEXI).

    From: ITE Associate Dean, Faculty & Staff and Students!

    By egs on Mar 4, 2009

  4. daw ka ged ahh.
    para sabihin

    By tae on Mar 10, 2009

Post a Comment


Anti-spam measure: please retype the above text into the box provided.