- Messages
- 11
- Country
Now Im a new person to all this coding buisness and i would like some Help
class Aircraft
{
public string TypeOfPlane;
public string Model;
public int PilotsRequired;
public int FuelLimit;
public int Price;
}
//Do i have to make a new class to input Values such as this?
class Boeing747
{
Aircraft.TypeOfPlane = "Boeing"
Aircraft.Model = "747'
Aircraft.PilotsRequired = "3"
Aircraft.FuelLimit = "10"
Aircraft.Price = "300"
}
// I would like to ask did i have to make a new class to input values or could I
// Have done it in the same class
Ok my last question now is how do I display these Values with their types when a button is clicked For example:
the button is called : Boeing 747
I want it to display all properties of the class Boeing747 and i would like it to display like:
Type Of plane: Boeing
Instead of:
Aircraft.TypeOfPlane = "Boeing"
Thanks guys! I need all the help I can get so I can develop some new programs!
class Aircraft
{
public string TypeOfPlane;
public string Model;
public int PilotsRequired;
public int FuelLimit;
public int Price;
}
//Do i have to make a new class to input Values such as this?
class Boeing747
{
Aircraft.TypeOfPlane = "Boeing"
Aircraft.Model = "747'
Aircraft.PilotsRequired = "3"
Aircraft.FuelLimit = "10"
Aircraft.Price = "300"
}
// I would like to ask did i have to make a new class to input values or could I
// Have done it in the same class
Ok my last question now is how do I display these Values with their types when a button is clicked For example:
the button is called : Boeing 747
I want it to display all properties of the class Boeing747 and i would like it to display like:
Type Of plane: Boeing
Instead of:
Aircraft.TypeOfPlane = "Boeing"
Thanks guys! I need all the help I can get so I can develop some new programs!