static void Main(string[] args) { ElectronicPhone ePhone = new ElectronicPhone(); ePhone.Ring(); Console.ReadKey(); }
private void Run() { // Variable names that are just initials are almost always a bad idea. // In this particular case it's not so important, but in a larger method it's easy to lose track of what the variable was (especially if you didn't write the code.) // Also you can use var here instead of repeating ElectronicPhone var phone = new ElectronicPhone(); phone.Ring(); }