Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ClassProgram
- {
- public class Program
- {
- public static void Main(string[] args)
- {
- Car.Standard();
- var tranmission = new Transmission();
- var car = new Car(tranmission);
- car.Drive();
- }
- public class Car
- {
- private int number;
- public static void Standard()
- {
- Console.WriteLine("Car:Standard");
- }
- public Car(Transmission transmission)
- {
- }
- public void Drive()
- {
- }
- }
- public class Transmission
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement