<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Upcast on Cheat Sheet</title><link>/kr/tags/upcast/</link><description>Recent content in Upcast on Cheat Sheet</description><generator>Hugo</generator><language>kr</language><atom:link href="/kr/tags/upcast/index.xml" rel="self" type="application/rss+xml"/><item><title>Object-Oriented Programming (OOP)</title><link>/kr/programming/cpp/primer/oop/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/kr/programming/cpp/primer/oop/</guid><description>&lt;h1 id="object-oriented-programming-oop"&gt;Object-Oriented Programming (OOP)&lt;a class="anchor" href="#object-oriented-programming-oop"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;&lt;em&gt;C++ Primer, 5th ed.&lt;/em&gt; 15장 Object-Oriented Programming 및 19.2.1절 &lt;code&gt;dynamic_cast&lt;/code&gt;를 바탕으로 OOP의 3대 핵심 원리, &lt;strong&gt;Upcast / Downcast, Object Slicing 및 다형성 컨테이너&lt;/strong&gt;, &lt;strong&gt;Virtual Function&lt;/strong&gt; (&lt;code&gt;virtual&lt;/code&gt;, &lt;code&gt;override&lt;/code&gt;, &lt;code&gt;final&lt;/code&gt;), &lt;strong&gt;Pure Virtual Function&lt;/strong&gt; (&lt;code&gt;= 0&lt;/code&gt;)과 &lt;strong&gt;Abstract Base Class&lt;/strong&gt;, 그리고 상속에서의 접근 제어를 정리한다.&lt;/p&gt;
&lt;h2 id="1-oop의-3대-핵심-개념"&gt;1. OOP의 3대 핵심 개념&lt;a class="anchor" href="#1-oop%ec%9d%98-3%eb%8c%80-%ed%95%b5%ec%8b%ac-%ea%b0%9c%eb%85%90"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;OOP는 다음 세 가지 핵심 개념 위에 구축된다:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Data Abstraction:&lt;/strong&gt; Define classes that separate interface from implementation. — &lt;a href="../../../kr/programming/cpp/primer/classes/"&gt;Classes&lt;/a&gt; 참조&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Inheritance:&lt;/strong&gt; Define classes that model the relationships among similar types.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Dynamic Binding:&lt;/strong&gt; Use objects of derived types while ignoring the details of how they differ.&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2 id="2-upcast-vs-downcast와-static--dynamic-type"&gt;2. Upcast vs. Downcast와 Static / Dynamic Type&lt;a class="anchor" href="#2-upcast-vs-downcast%ec%99%80-static--dynamic-type"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;다형성을 다루는 표현식에서는 두 가지 타입을 항상 구분해야 한다:&lt;/p&gt;</description></item></channel></rss>