{"id":42686,"date":"2024-11-13T20:47:52","date_gmt":"2024-11-13T20:47:52","guid":{"rendered":"https:\/\/atmokpo.com\/w\/?p=42686"},"modified":"2024-11-26T06:34:46","modified_gmt":"2024-11-26T06:34:46","slug":"1-%ea%b0%9d%ec%b2%b4%ec%a7%80%ed%96%a5-%ed%94%84%eb%a1%9c%ea%b7%b8%eb%9e%98%eb%b0%8d%ec%9d%98-%ed%95%b5%ec%8b%ac-%ec%9b%90%ec%b9%99-%ec%9d%98%ec%a1%b4%ec%84%b1-%ec%a3%bc%ec%9e%85%ea%b3%bc-%ea%b7%b8","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/42686\/","title":{"rendered":"[\uac1d\uccb4\uc9c0\ud5a5] 1.\uac1d\uccb4\uc9c0\ud5a5 \ud504\ub85c\uadf8\ub798\ubc0d\uc758 \ud575\uc2ec \uc6d0\uce59, \uc758\uc874\uc131 \uc8fc\uc785\uacfc \uadf8 \uc5ed\ud560"},"content":{"rendered":"<p><body><\/p>\n<p>\uac1d\uccb4\uc9c0\ud5a5 \ud504\ub85c\uadf8\ub798\ubc0d(Object-Oriented Programming, OOP)\uc740 \uc18c\ud504\ud2b8\uc6e8\uc5b4 \uac1c\ubc1c\uc5d0\uc11c \ub110\ub9ac \uc0ac\uc6a9\ub418\ub294 \ud504\ub85c\uadf8\ub798\ubc0d \ud328\ub7ec\ub2e4\uc784\uc785\ub2c8\ub2e4. OOP\uc758 \ubaa9\ud45c\ub294 \uc18c\ud504\ud2b8\uc6e8\uc5b4\uc758 \uad6c\uc870\ub97c \uba85\ud655\ud788 \ud558\uace0, \ucf54\ub4dc\uc758 \uc7ac\uc0ac\uc6a9\uc131\uc744 \uadf9\ub300\ud654\ud558\uba70, \uc720\uc9c0 \ubcf4\uc218\ub97c \uc6a9\uc774\ud558\uac8c \ud558\uae30 \uc704\ud568\uc785\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 OOP\uc758 \ud575\uc2ec \uc6d0\uce59\uacfc \uc758\uc874\uc131 \uc8fc\uc785(Dependency Injection, DI)\uc758 \uc5ed\ud560\uc5d0 \ub300\ud574 \uae4a\uc774 \uc788\uac8c \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>1. \uac1d\uccb4\uc9c0\ud5a5 \ud504\ub85c\uadf8\ub798\ubc0d\uc758 \ud575\uc2ec \uc6d0\uce59<\/h2>\n<p>OOP\uc758 \ud575\uc2ec \uc6d0\uce59\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li><strong>\ucea1\uc290\ud654(Encapsulation)<\/strong>: \uac1d\uccb4\uc758 \ub0b4\ubd80 \uc0c1\ud0dc\ub97c \ubcf4\ud638\ud558\uace0, \uac1d\uccb4\uc758 \ud589\ub3d9\uc744 \uc815\uc758\ud558\ub294 \uc6d0\uce59\uc785\ub2c8\ub2e4. \uc774 \uc6d0\uce59\uc740 \ub370\uc774\ud130\uc640 \uba54\uc18c\ub4dc\ub97c \ud558\ub098\uc758 \ub2e8\uc704\ub85c \ubb36\uace0, \uc678\ubd80\uc5d0\uc11c\ub294 \ub0b4\ubd80 \uad6c\ud604\uc744 \uc54c \ud544\uc694 \uc5c6\ub3c4\ub85d \ud569\ub2c8\ub2e4.<\/li>\n<li><strong>\uc0c1\uc18d(Inheritance)<\/strong>: \uc0c8\ub85c\uc6b4 \ud074\ub798\uc2a4\uac00 \uae30\uc874 \ud074\ub798\uc2a4\uc758 \ud2b9\uc131\uc744 \uc7ac\uc0ac\uc6a9\ud560 \uc218 \uc788\ub294 \uae30\ub2a5\uc785\ub2c8\ub2e4. \ucf54\ub4dc\ub97c \uc7ac\uc0ac\uc6a9\ud560 \uc218 \uc788\uac8c \ud574\uc8fc\uba70, \ud074\ub798\uc2a4 \uac04\uc758 \uacc4\uce35 \uad6c\uc870\ub97c \ud615\uc131\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>\ub2e4\ud615\uc131(Polymorphism)<\/strong>: \ub3d9\uc77c\ud55c \uc778\ud130\ud398\uc774\uc2a4\ub97c \ud1b5\ud574 \ub2e4\ub978 \uac1d\uccb4\ub97c \ucc98\ub9ac\ud560 \uc218 \uc788\ub294 \ub2a5\ub825\uc785\ub2c8\ub2e4. \ucf54\ub4dc\uc758 \uc720\uc5f0\uc131\uc744 \ub192\uc774\uace0, \uc720\uc9c0\ubcf4\uc218\ub97c \uc6a9\uc774\ud558\uac8c \ud569\ub2c8\ub2e4.<\/li>\n<li><strong>\ucd94\uc0c1\ud654(Abstraction)<\/strong>: \ud544\uc694\ud55c \uc815\ubcf4\ub9cc\uc744 \ub178\ucd9c\ud558\uc5ec \ubcf5\uc7a1\uc131\uc744 \uc904\uc774\ub294 \uac83\uc785\ub2c8\ub2e4. \ubcf5\uc7a1\ud55c \uc2dc\uc2a4\ud15c\uc744 \ub2e8\uc21c\ud654\uc2dc\ucf1c \uac1c\ubc1c\uc790\uc640 \uc0ac\uc6a9\uc790 \ubaa8\ub450\uc5d0\uac8c \uc774\ud574\ud558\uae30 \uc27d\uac8c \ub9cc\ub4ed\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h3>1.1 \ucea1\uc290\ud654\uc758 \uc608<\/h3>\n<pre><code>public class BankAccount {\n    private decimal balance;\n\n    public void Deposit(decimal amount) {\n        balance += amount;\n    }\n\n    public void Withdraw(decimal amount) {\n        if (amount &gt; balance) throw new InvalidOperationException(\"Insufficient funds.\");\n        balance -= amount;\n    }\n\n    public decimal GetBalance() {\n        return balance;\n    }\n}<\/code><\/pre>\n<h3>1.2 \uc0c1\uc18d\uc758 \uc608<\/h3>\n<pre><code>public class Animal {\n    public virtual void Speak() {\n        Console.WriteLine(\"Animal sound\");\n    }\n}\n\npublic class Dog : Animal {\n    public override void Speak() {\n        Console.WriteLine(\"Bark\");\n    }\n}<\/code><\/pre>\n<h3>1.3 \ub2e4\ud615\uc131\uc758 \uc608<\/h3>\n<pre><code>public void MakeAnimalSpeak(Animal animal) {\n    animal.Speak();\n}\n\nMakeAnimalSpeak(new Dog()); \/\/ Bark<\/code><\/pre>\n<h3>1.4 \ucd94\uc0c1\ud654\uc758 \uc608<\/h3>\n<pre><code>public abstract class Shape {\n    public abstract double Area();\n}\n\npublic class Circle : Shape {\n    public double Radius { get; set; }\n\n    public override double Area() {\n        return Math.PI * Radius * Radius;\n    }\n}<\/code><\/pre>\n<h2>2. \uc758\uc874\uc131 \uc8fc\uc785(Dependency Injection)<\/h2>\n<p>\uc758\uc874\uc131 \uc8fc\uc785\uc740 \uc18c\ud504\ud2b8\uc6e8\uc5b4 \ub514\uc790\uc778 \ud328\ud134 \uc911 \ud558\ub098\ub85c, \uac1d\uccb4\uac00 \ub2e4\ub978 \uac1d\uccb4\uc5d0 \uc758\uc874\ud558\ub294 \ubc29\uc2dd\uc744 \uad00\ub9ac\ud558\ub294 \uae30\ubc95\uc785\ub2c8\ub2e4. DI\ub294 \uac1d\uccb4\uc758 \uc0dd\uc131\uacfc \uc758\uc874\uc131 \uad00\ub9ac\ub97c \uc678\ubd80\ub85c \ubd84\ub9ac\ud558\uc5ec, \ucf54\ub4dc\uc758 \uacb0\ud569\ub3c4\ub97c \ub0ae\ucd94\uace0, \ud14c\uc2a4\ud2b8 \uc6a9\uc774\uc131\uc744 \ub192\uc785\ub2c8\ub2e4. DI\uc758 \uc8fc\ub41c \ubaa9\ud45c\ub294 \ud074\ub798\uc2a4\uac00 \ub2e4\ub978 \ud074\ub798\uc2a4\uc640\uc758 \uc758\uc874\uc131\uc744 \uc904\uc5ec, \uacb0\ud569\ub3c4\ub97c \ub0ae\ucd94\ub294 \uac83\uc785\ub2c8\ub2e4.<\/p>\n<h3>2.1 \uc758\uc874\uc131 \uc8fc\uc785\uc758 \uc911\uc694\uc131<\/h3>\n<p>\uc758\uc874\uc131 \uc8fc\uc785\uc758 \uc911\uc694\uc131\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li>**\uc720\uc9c0\ubcf4\uc218 \uc6a9\uc774\uc131**: \uac1d\uccb4 \uac04\uc758 \uad00\uacc4\uac00 \uba85\ud655\ud574\uc9c0\ubbc0\ub85c, \ucf54\ub4dc\uc758 \ubcc0\uacbd\uc774 \uc6a9\uc774\ud569\ub2c8\ub2e4.<\/li>\n<li>**\ud14c\uc2a4\ud2b8 \uc6a9\uc774\uc131**: Mock \uac1d\uccb4\ub97c \uc0ac\uc6a9\ud574 \uc758\uc874\uc131 \uc8fc\uc785\uc744 \ud1b5\ud574 \ub2e8\uc704 \ud14c\uc2a4\ud2b8\ub97c \uc27d\uac8c \uc218\ud589\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li>**\uc7ac\uc0ac\uc6a9\uc131 \uc99d\uac00**: \ub3c5\ub9bd\uc801\uc778 \uac1d\uccb4\ub85c \uc124\uacc4\ub428\uc73c\ub85c\uc368 \ucf54\ub4dc\uc758 \uc7ac\uc0ac\uc6a9\uc131\uc774 \uc99d\uac00\ud569\ub2c8\ub2e4.<\/li>\n<li>**\uc720\uc5f0\uc131 \ubc0f \ud655\uc7a5\uc131**: \uc0c8\ub85c\uc6b4 \uae30\ub2a5 \ucd94\uac00\ub098 \ubcc0\uacbd\uc774 \uc26c\uc6cc\uc9d1\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h3>2.2 \uc758\uc874\uc131 \uc8fc\uc785\uc758 \uc885\ub958<\/h3>\n<p>\uc758\uc874\uc131 \uc8fc\uc785\uc758 \uc885\ub958\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li><strong>\uc0dd\uc131\uc790 \uc8fc\uc785(Constructor Injection)<\/strong>: \uc758\uc874\ud558\ub294 \uac1d\uccb4\ub97c \uc0dd\uc131\uc790\uc758 \ub9e4\uac1c\ubcc0\uc218\ub85c \uc804\ub2ec\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>\uc124\uc815\uc790 \uc8fc\uc785(Setter Injection)<\/strong>: \uc758\uc874\ud558\ub294 \uac1d\uccb4\ub97c setter \uba54\uc11c\ub4dc\ub97c \ud1b5\ud574 \uc8fc\uc785\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>\uc778\ud130\ud398\uc774\uc2a4 \uc8fc\uc785(Interface Injection)<\/strong>: \uc758\uc874\ud558\ub294 \uac1d\uccb4\uc5d0 \uc8fc\uc785 \uba54\uc11c\ub4dc\ub97c \uc815\uc758\ud55c \uc778\ud130\ud398\uc774\uc2a4\ub97c \uad6c\ud604\ud558\uac8c \ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h3>2.3 \uc0dd\uc131\uc790 \uc8fc\uc785\uc758 \uc608<\/h3>\n<pre><code>public class PaymentService {\n    private readonly IPaymentGateway paymentGateway;\n\n    public PaymentService(IPaymentGateway paymentGateway) {\n        this.paymentGateway = paymentGateway;\n    }\n\n    public void ProcessPayment(decimal amount) {\n        paymentGateway.Process(amount);\n    }\n}<\/code><\/pre>\n<h3>2.4 \uc124\uc815\uc790 \uc8fc\uc785\uc758 \uc608<\/h3>\n<pre><code>public class NotificationService {\n    private INotificationSender notificationSender;\n\n    public void SetNotificationSender(INotificationSender sender) {\n        notificationSender = sender;\n    }\n\n    public void SendNotification(string message) {\n        notificationSender.Send(message);\n    }\n}<\/code><\/pre>\n<h3>2.5 \uc778\ud130\ud398\uc774\uc2a4 \uc8fc\uc785\uc758 \uc608<\/h3>\n<pre><code>public interface IHasDependency {\n    void InjectDependency(IDependency dependency);\n}\n\npublic class SomeService : IHasDependency {\n    private IDependency dependency;\n\n    public void InjectDependency(IDependency dependency) {\n        this.dependency = dependency;\n    }\n}<\/code><\/pre>\n<h2>3. \uc758\uc874\uc131 \uc8fc\uc785 \ud504\ub808\uc784\uc6cc\ud06c<\/h2>\n<p>\ub9ce\uc740 \ud604\ub300 C# \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c DI\ub97c \uad6c\ud604\ud558\uae30 \uc704\ud574 \ub2e4\uc591\ud55c DI \ud504\ub808\uc784\uc6cc\ud06c\ub97c \uc0ac\uc6a9\ud569\ub2c8\ub2e4. \uc774\ub7ec\ud55c \ud504\ub808\uc784\uc6cc\ud06c\ub294 \uac1d\uccb4\uc758 \uc0dd\uba85\uc8fc\uae30 \uad00\ub9ac, \uc758\uc874\uc131 \ud574\uc18c, \uc2a4\ucf54\ud504 \uad00\ub9ac \ub4f1 \ub2e4\uc591\ud55c \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4.<\/p>\n<p>\ub2e4\uc74c\uc740 C#\uc5d0\uc11c \uc778\uae30 \uc788\ub294 \uc758\uc874\uc131 \uc8fc\uc785 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4:<\/p>\n<ul>\n<li><strong>Autofac<\/strong>: \ud655\uc7a5\uc131\uacfc \uc720\uc5f0\uc131\uc774 \ub6f0\uc5b4\ub09c \uac15\ub825\ud55c DI \ucee8\ud14c\uc774\ub108\uc785\ub2c8\ub2e4.<\/li>\n<li><strong>Unity<\/strong>: Microsoft\uc5d0\uc11c \uac1c\ubc1c\ub41c DI \ucee8\ud14c\uc774\ub108\ub85c, \uac04\ud3b8\ud55c \uc124\uc815\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>Ninject<\/strong>: \ud50c\ub7ec\uadf8\uc778\ucc98\ub7fc \uc0ac\uc6a9\ud560 \uc218 \uc788\ub294 \ub2e4\uc591\ud55c \uae30\ub2a5\uc774 \uc788\ub294 DI \ucee8\ud14c\uc774\ub108\uc785\ub2c8\ub2e4.<\/li>\n<li><strong>ASP.NET Core DI<\/strong>: ASP.NET Core\uc758 \uae30\ubcf8 \ub0b4\uc7a5 DI \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \uac04\ub2e8\ud55c \uc124\uc815\uc73c\ub85c DI\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h3>3.1 ASP.NET Core DI\uc758 \uc608<\/h3>\n<pre><code>public class Startup {\n    public void ConfigureServices(IServiceCollection services) {\n        services.AddScoped<ipaymentgateway, paymentgateway=\"\">();\n        services.AddScoped<paymentservice>();\n    }\n}\n\npublic class HomeController : Controller {\n    private readonly PaymentService paymentService;\n\n    public HomeController(PaymentService paymentService) {\n        this.paymentService = paymentService;\n    }\n}<\/paymentservice><\/ipaymentgateway,><\/code><\/pre>\n<h2>4. \uacb0\ub860<\/h2>\n<p>\uac1d\uccb4\uc9c0\ud5a5 \ud504\ub85c\uadf8\ub798\ubc0d(OOP)\uc740 \uc18c\ud504\ud2b8\uc6e8\uc5b4 \uac1c\ubc1c\uc758 \ud575\uc2ec \uc6d0\uce59\uc744 \uc81c\uacf5\ud558\uc5ec \ucf54\ub4dc\uc758 \uc774\ud574\uc640 \uc720\uc9c0 \ubcf4\uc218\ub97c \uc6a9\uc774\ud558\uac8c \ud569\ub2c8\ub2e4. \uc758\uc874\uc131 \uc8fc\uc785(Dependency Injection)\uc740 \uc774\ub7ec\ud55c OOP \uc6d0\uce59\uc744 \ub354\uc6b1 \uac15\ud654\uc2dc\ucf1c, \uacb0\ud569\ub3c4\ub97c \ub0ae\ucd94\uace0, \uc18c\ud504\ud2b8\uc6e8\uc5b4\uc758 \ud488\uc9c8\uc744 \ub192\uc774\ub294 \uc911\uc694\ud55c \uae30\ubc95\uc785\ub2c8\ub2e4. \uc774\ub7ec\ud55c \uae30\ubc95\ub4e4\uc744 \uc774\ud574\ud558\uace0 \ud65c\uc6a9\ud558\ub294 \uac83\uc740 \uac1c\ubc1c\uc790\uc5d0\uac8c \ub9ce\uc740 \uc774\uc810\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4.<\/p>\n<p>\uc774 \uae00\uc744 \ud1b5\ud574 \uac1d\uccb4\uc9c0\ud5a5 \ud504\ub85c\uadf8\ub798\ubc0d\uc758 \ud575\uc2ec \uc6d0\uce59\uacfc \uc758\uc874\uc131 \uc8fc\uc785\uc5d0 \ub300\ud55c \uae4a\uc740 \uc774\ud574\ub97c \ub3d5\uace0\uc790 \ud558\uc600\uc73c\uba70, \uc2e4\uc81c \ucf54\ub4dc \uc608\uc81c\ub97c \ud1b5\ud574 \uc801\uc6a9 \ubc29\ubc95\uc744 \uc81c\uc2dc\ud558\uc600\uc2b5\ub2c8\ub2e4. \uc55e\uc73c\ub85c\uc758 \ud504\ub85c\uc81d\ud2b8\uc5d0\uc11c OOP\uc640 DI\ub97c \ud1b5\ud574 \ub354\uc6b1 \uacac\uace0\ud55c \uc18c\ud504\ud2b8\uc6e8\uc5b4\ub97c \uac1c\ubc1c\ud558\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uac1d\uccb4\uc9c0\ud5a5 \ud504\ub85c\uadf8\ub798\ubc0d(Object-Oriented Programming, OOP)\uc740 \uc18c\ud504\ud2b8\uc6e8\uc5b4 \uac1c\ubc1c\uc5d0\uc11c \ub110\ub9ac \uc0ac\uc6a9\ub418\ub294 \ud504\ub85c\uadf8\ub798\ubc0d \ud328\ub7ec\ub2e4\uc784\uc785\ub2c8\ub2e4. OOP\uc758 \ubaa9\ud45c\ub294 \uc18c\ud504\ud2b8\uc6e8\uc5b4\uc758 \uad6c\uc870\ub97c \uba85\ud655\ud788 \ud558\uace0, \ucf54\ub4dc\uc758 \uc7ac\uc0ac\uc6a9\uc131\uc744 \uadf9\ub300\ud654\ud558\uba70, \uc720\uc9c0 \ubcf4\uc218\ub97c \uc6a9\uc774\ud558\uac8c \ud558\uae30 \uc704\ud568\uc785\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 OOP\uc758 \ud575\uc2ec \uc6d0\uce59\uacfc \uc758\uc874\uc131 \uc8fc\uc785(Dependency Injection, DI)\uc758 \uc5ed\ud560\uc5d0 \ub300\ud574 \uae4a\uc774 \uc788\uac8c \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. \uac1d\uccb4\uc9c0\ud5a5 \ud504\ub85c\uadf8\ub798\ubc0d\uc758 \ud575\uc2ec \uc6d0\uce59 OOP\uc758 \ud575\uc2ec \uc6d0\uce59\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4: \ucea1\uc290\ud654(Encapsulation): \uac1d\uccb4\uc758 \ub0b4\ubd80 \uc0c1\ud0dc\ub97c \ubcf4\ud638\ud558\uace0, \uac1d\uccb4\uc758 \ud589\ub3d9\uc744 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/42686\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;[\uac1d\uccb4\uc9c0\ud5a5] 1.\uac1d\uccb4\uc9c0\ud5a5 \ud504\ub85c\uadf8\ub798\ubc0d\uc758 \ud575\uc2ec \uc6d0\uce59, \uc758\uc874\uc131 \uc8fc\uc785\uacfc \uadf8 \uc5ed\ud560&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[241],"tags":[],"class_list":["post-42686","post","type-post","status-publish","format-standard","hentry","category-csharp"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[\uac1d\uccb4\uc9c0\ud5a5] 1.\uac1d\uccb4\uc9c0\ud5a5 \ud504\ub85c\uadf8\ub798\ubc0d\uc758 \ud575\uc2ec \uc6d0\uce59, \uc758\uc874\uc131 \uc8fc\uc785\uacfc \uadf8 \uc5ed\ud560 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/atmokpo.com\/w\/42686\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[\uac1d\uccb4\uc9c0\ud5a5] 1.\uac1d\uccb4\uc9c0\ud5a5 \ud504\ub85c\uadf8\ub798\ubc0d\uc758 \ud575\uc2ec \uc6d0\uce59, \uc758\uc874\uc131 \uc8fc\uc785\uacfc \uadf8 \uc5ed\ud560 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\uac1d\uccb4\uc9c0\ud5a5 \ud504\ub85c\uadf8\ub798\ubc0d(Object-Oriented Programming, OOP)\uc740 \uc18c\ud504\ud2b8\uc6e8\uc5b4 \uac1c\ubc1c\uc5d0\uc11c \ub110\ub9ac \uc0ac\uc6a9\ub418\ub294 \ud504\ub85c\uadf8\ub798\ubc0d \ud328\ub7ec\ub2e4\uc784\uc785\ub2c8\ub2e4. OOP\uc758 \ubaa9\ud45c\ub294 \uc18c\ud504\ud2b8\uc6e8\uc5b4\uc758 \uad6c\uc870\ub97c \uba85\ud655\ud788 \ud558\uace0, \ucf54\ub4dc\uc758 \uc7ac\uc0ac\uc6a9\uc131\uc744 \uadf9\ub300\ud654\ud558\uba70, \uc720\uc9c0 \ubcf4\uc218\ub97c \uc6a9\uc774\ud558\uac8c \ud558\uae30 \uc704\ud568\uc785\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 OOP\uc758 \ud575\uc2ec \uc6d0\uce59\uacfc \uc758\uc874\uc131 \uc8fc\uc785(Dependency Injection, DI)\uc758 \uc5ed\ud560\uc5d0 \ub300\ud574 \uae4a\uc774 \uc788\uac8c \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. \uac1d\uccb4\uc9c0\ud5a5 \ud504\ub85c\uadf8\ub798\ubc0d\uc758 \ud575\uc2ec \uc6d0\uce59 OOP\uc758 \ud575\uc2ec \uc6d0\uce59\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4: \ucea1\uc290\ud654(Encapsulation): \uac1d\uccb4\uc758 \ub0b4\ubd80 \uc0c1\ud0dc\ub97c \ubcf4\ud638\ud558\uace0, \uac1d\uccb4\uc758 \ud589\ub3d9\uc744 &hellip; \ub354 \ubcf4\uae30 &quot;[\uac1d\uccb4\uc9c0\ud5a5] 1.\uac1d\uccb4\uc9c0\ud5a5 \ud504\ub85c\uadf8\ub798\ubc0d\uc758 \ud575\uc2ec \uc6d0\uce59, \uc758\uc874\uc131 \uc8fc\uc785\uacfc \uadf8 \uc5ed\ud560&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/42686\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-13T20:47:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:34:46+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/42686\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/42686\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"[\uac1d\uccb4\uc9c0\ud5a5] 1.\uac1d\uccb4\uc9c0\ud5a5 \ud504\ub85c\uadf8\ub798\ubc0d\uc758 \ud575\uc2ec \uc6d0\uce59, \uc758\uc874\uc131 \uc8fc\uc785\uacfc \uadf8 \uc5ed\ud560\",\"datePublished\":\"2024-11-13T20:47:52+00:00\",\"dateModified\":\"2024-11-26T06:34:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/42686\/\"},\"wordCount\":55,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"csharp\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/42686\/\",\"url\":\"https:\/\/atmokpo.com\/w\/42686\/\",\"name\":\"[\uac1d\uccb4\uc9c0\ud5a5] 1.\uac1d\uccb4\uc9c0\ud5a5 \ud504\ub85c\uadf8\ub798\ubc0d\uc758 \ud575\uc2ec \uc6d0\uce59, \uc758\uc874\uc131 \uc8fc\uc785\uacfc \uadf8 \uc5ed\ud560 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-13T20:47:52+00:00\",\"dateModified\":\"2024-11-26T06:34:46+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/42686\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/42686\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/42686\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[\uac1d\uccb4\uc9c0\ud5a5] 1.\uac1d\uccb4\uc9c0\ud5a5 \ud504\ub85c\uadf8\ub798\ubc0d\uc758 \ud575\uc2ec \uc6d0\uce59, \uc758\uc874\uc131 \uc8fc\uc785\uacfc \uadf8 \uc5ed\ud560\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/atmokpo.com\/w\/#website\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/atmokpo.com\/w\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"contentUrl\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"width\":400,\"height\":400,\"caption\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\"},\"image\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/bebubo4\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/atmokpo.com\/w\"],\"url\":\"https:\/\/atmokpo.com\/w\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[\uac1d\uccb4\uc9c0\ud5a5] 1.\uac1d\uccb4\uc9c0\ud5a5 \ud504\ub85c\uadf8\ub798\ubc0d\uc758 \ud575\uc2ec \uc6d0\uce59, \uc758\uc874\uc131 \uc8fc\uc785\uacfc \uadf8 \uc5ed\ud560 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/atmokpo.com\/w\/42686\/","og_locale":"ko_KR","og_type":"article","og_title":"[\uac1d\uccb4\uc9c0\ud5a5] 1.\uac1d\uccb4\uc9c0\ud5a5 \ud504\ub85c\uadf8\ub798\ubc0d\uc758 \ud575\uc2ec \uc6d0\uce59, \uc758\uc874\uc131 \uc8fc\uc785\uacfc \uadf8 \uc5ed\ud560 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\uac1d\uccb4\uc9c0\ud5a5 \ud504\ub85c\uadf8\ub798\ubc0d(Object-Oriented Programming, OOP)\uc740 \uc18c\ud504\ud2b8\uc6e8\uc5b4 \uac1c\ubc1c\uc5d0\uc11c \ub110\ub9ac \uc0ac\uc6a9\ub418\ub294 \ud504\ub85c\uadf8\ub798\ubc0d \ud328\ub7ec\ub2e4\uc784\uc785\ub2c8\ub2e4. OOP\uc758 \ubaa9\ud45c\ub294 \uc18c\ud504\ud2b8\uc6e8\uc5b4\uc758 \uad6c\uc870\ub97c \uba85\ud655\ud788 \ud558\uace0, \ucf54\ub4dc\uc758 \uc7ac\uc0ac\uc6a9\uc131\uc744 \uadf9\ub300\ud654\ud558\uba70, \uc720\uc9c0 \ubcf4\uc218\ub97c \uc6a9\uc774\ud558\uac8c \ud558\uae30 \uc704\ud568\uc785\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 OOP\uc758 \ud575\uc2ec \uc6d0\uce59\uacfc \uc758\uc874\uc131 \uc8fc\uc785(Dependency Injection, DI)\uc758 \uc5ed\ud560\uc5d0 \ub300\ud574 \uae4a\uc774 \uc788\uac8c \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. \uac1d\uccb4\uc9c0\ud5a5 \ud504\ub85c\uadf8\ub798\ubc0d\uc758 \ud575\uc2ec \uc6d0\uce59 OOP\uc758 \ud575\uc2ec \uc6d0\uce59\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4: \ucea1\uc290\ud654(Encapsulation): \uac1d\uccb4\uc758 \ub0b4\ubd80 \uc0c1\ud0dc\ub97c \ubcf4\ud638\ud558\uace0, \uac1d\uccb4\uc758 \ud589\ub3d9\uc744 &hellip; \ub354 \ubcf4\uae30 \"[\uac1d\uccb4\uc9c0\ud5a5] 1.\uac1d\uccb4\uc9c0\ud5a5 \ud504\ub85c\uadf8\ub798\ubc0d\uc758 \ud575\uc2ec \uc6d0\uce59, \uc758\uc874\uc131 \uc8fc\uc785\uacfc \uadf8 \uc5ed\ud560\"","og_url":"https:\/\/atmokpo.com\/w\/42686\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-13T20:47:52+00:00","article_modified_time":"2024-11-26T06:34:46+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"1\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/42686\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/42686\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"[\uac1d\uccb4\uc9c0\ud5a5] 1.\uac1d\uccb4\uc9c0\ud5a5 \ud504\ub85c\uadf8\ub798\ubc0d\uc758 \ud575\uc2ec \uc6d0\uce59, \uc758\uc874\uc131 \uc8fc\uc785\uacfc \uadf8 \uc5ed\ud560","datePublished":"2024-11-13T20:47:52+00:00","dateModified":"2024-11-26T06:34:46+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/42686\/"},"wordCount":55,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["csharp"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/42686\/","url":"https:\/\/atmokpo.com\/w\/42686\/","name":"[\uac1d\uccb4\uc9c0\ud5a5] 1.\uac1d\uccb4\uc9c0\ud5a5 \ud504\ub85c\uadf8\ub798\ubc0d\uc758 \ud575\uc2ec \uc6d0\uce59, \uc758\uc874\uc131 \uc8fc\uc785\uacfc \uadf8 \uc5ed\ud560 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-13T20:47:52+00:00","dateModified":"2024-11-26T06:34:46+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/42686\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/42686\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/42686\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"[\uac1d\uccb4\uc9c0\ud5a5] 1.\uac1d\uccb4\uc9c0\ud5a5 \ud504\ub85c\uadf8\ub798\ubc0d\uc758 \ud575\uc2ec \uc6d0\uce59, \uc758\uc874\uc131 \uc8fc\uc785\uacfc \uadf8 \uc5ed\ud560"}]},{"@type":"WebSite","@id":"https:\/\/atmokpo.com\/w\/#website","url":"https:\/\/atmokpo.com\/w\/","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","description":"","publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/atmokpo.com\/w\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/atmokpo.com\/w\/#organization","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","url":"https:\/\/atmokpo.com\/w\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/","url":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","contentUrl":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","width":400,"height":400,"caption":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8"},"image":{"@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/bebubo4"]},{"@type":"Person","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7","name":"root","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","caption":"root"},"sameAs":["http:\/\/atmokpo.com\/w"],"url":"https:\/\/atmokpo.com\/w\/author\/root\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/42686","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/comments?post=42686"}],"version-history":[{"count":2,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/42686\/revisions"}],"predecessor-version":[{"id":42774,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/42686\/revisions\/42774"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=42686"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=42686"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=42686"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}