Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.
By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.
Otherwise C# is in the group of languages that have a managed memory model. In theory the programmer should not need to worry about recovering unused and memory. C, C++ memory management and garbage collection is left to the developer
OT but every time my Android memory usage starts climbing because of some app that has a memory leak I want to curse the lack of alertness that managed memory has caused in so many programmers....and wish that they actually would master the art of C++ and pointers.
Very true. The idea that you can ignore memory management in so called managed code is just plain wrong..............
Now Im a new person to all this coding buisness and i would like some Help
public class Aircraft
{
public string TypeOfPlane;
public string Model;
public int PilotsRequired;
public int FuelLimit;
public int Price;
public Aircraft(string typeOfplane, string model, int pilotsRequired, int fuelLimit, int price)
{
TypeOfPlane = typeOfplane;
Model = model;
PilotsRequired = pilotsRequired;
FuelLimit = fuelLimit;
Price = price;
}
}
public class JetAircraft : Aircraft
{
public int NumOfJetEngines;
public JetAircraft( string typeOfplane, string model, int pilotsRequired, int fuelLimit, int price, int numOfJetEngines)
: base( typeOfplane, model, pilotsRequired, fuelLimit, price )
{
NumOfJetEngines = numOfJetEngines;
}
}
class Program
{
static void Main(string[] args)
{
Aircraft aircraftC172 = new Aircraft("Cessna", "172", 1, 1, 10);
JetAircraft aircraftB747 = new JetAircraft("Boeing", "747", 3, 10, 300, 4);
}
}