How to make program in which display the mobile attribute

May 02, 2013



How to make program in which display the mobile attribute

Object
 write a program in which display the mobile attribute.


Code


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace lab__5
{
  
    class atribute

    {
        string white ;
        string  hight ;
        string inteligent;

        public void mobile()
        {

            white = "shining colour";
            hight = "new interface";
            inteligent = "high Memory";

            Console.WriteLine("\t\t************atributes of Mobiles**********");
            Console.WriteLine(white);
            Console.WriteLine(hight);
            Console.WriteLine(inteligent);
        }
        public void car()
        {
            white = "Red car colour";
            hight = "new modle";
            inteligent = "Expensive";


            Console.WriteLine(white);
            Console.WriteLine(hight);
            Console.WriteLine(inteligent);

        }

        public void student()
        {
            white = "Punchual";
            hight = "good hight";
            inteligent = "inteligent";


            Console.WriteLine(white);
            Console.WriteLine(hight);
            Console.WriteLine(inteligent);

        }


        class Program
        {

            static void Main(string[] args)
            {
            
              atribute obj = new atribute();
              obj.mobile();

            }
        }
    }
}

Screen Shot

You Might Also Like

0 comments

Popular Posts

Like us on Facebook

Flickr Images