static void Main(string[] args) { world w = new world(); w.airResistance = 0.5f; world y = w; y.airResistance = 0.4f; float weight = w.getWeight(3.4f); Console.WriteLine(y.airResistance); Console.WriteLine(w.airResistance); }