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();
}
}
}
}
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
No comments:
Post a Comment