<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Oop on Muhammad Nuh</title><link>https://hexrogue.github.io/tags/oop/</link><description>Recent content in Oop on Muhammad Nuh</description><generator>Hugo</generator><language>en-us</language><managingEditor>ikanlemas0@gmail.com (Muhammad Nuh)</managingEditor><webMaster>ikanlemas0@gmail.com (Muhammad Nuh)</webMaster><lastBuildDate>Tue, 11 Oct 2022 00:00:00 +0800</lastBuildDate><atom:link href="https://hexrogue.github.io/tags/oop/index.xml" rel="self" type="application/rss+xml"/><item><title>OOP Clicked When I Stopped Memorizing</title><link>https://hexrogue.github.io/blog/oop-clicked-kitchen-version/</link><pubDate>Tue, 11 Oct 2022 00:00:00 +0800</pubDate><author>ikanlemas0@gmail.com (Muhammad Nuh)</author><guid>https://hexrogue.github.io/blog/oop-clicked-kitchen-version/</guid><description>&lt;p&gt;Object oriented programming confused me exactly as long as I tried to memorize definitions. Encapsulation, inheritance, polymorphism. Words to chant before exams, and also the name of a band that would never get a record deal. Then someone explained it with a kitchen, and it clicked in a minute. Passing that on.&lt;/p&gt;&#10;&lt;h2 id="classes-are-cookie-cutters-objects-are-cookies"&gt;Classes are cookie cutters, objects are cookies&lt;/h2&gt;&#10;&lt;p&gt;A class is a blueprint. It describes what a thing has (data) and what it can do (methods), but it is not the thing. An object is one actual thing stamped from the blueprint. One User class, thousands of user objects. The cutter is not a cookie. Say it with me.&lt;/p&gt;</description></item></channel></rss>