[Unity] C# Class, 생성자(constructor) 정리
using System; using System.Collections.Generic; using System.Text; namespace ConsoleApp3 { public class Program { static void Main(string[] args) { Car car1 = new Car(); car1.CarName = "Mercedes"; car1.InstallEngine("V8"); car1.Vroom(); Car car2 = new Car(); car2.CarName = "Audi"; car1.InstallEngine("V6"); car2.Vroom(); Car car3 = new Car(); car3.CarName = "Honda"; car3.InstallEngine("V8"); car3..
2023.05.02