<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Emirsenturk on Medium]]></title>
        <description><![CDATA[Stories by Emirsenturk on Medium]]></description>
        <link>https://medium.com/@emirhansenturk574000?source=rss-8c3bd800c7c6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*LUEZ0He-RV9nprw0</url>
            <title>Stories by Emirsenturk on Medium</title>
            <link>https://medium.com/@emirhansenturk574000?source=rss-8c3bd800c7c6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 21:43:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@emirhansenturk574000/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Concepts of Reference and Value Types in Java]]></title>
            <link>https://medium.com/@emirhansenturk574000/concepts-of-reference-and-value-types-in-java-b2fd21f43bc8?source=rss-8c3bd800c7c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2fd21f43bc8</guid>
            <category><![CDATA[c-programming]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[python-programming]]></category>
            <dc:creator><![CDATA[Emirsenturk]]></dc:creator>
            <pubDate>Mon, 18 Dec 2023 19:18:20 GMT</pubDate>
            <atom:updated>2023-12-19T04:39:16.047Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Concepts of Reference and Value Types in Java</strong></p><p>You are a businessman, and you have personal bags, right? Now, what if the numbers that distinguish the bags through their codes are the same? Is it not possible for businessmen to have their own employees? Can’t these employees carry your bags for you? If these employees carry the bags and the bags come from businessmen, don’t the employees also come from businessmen?</p><p>This situation illustrates the concept of inheritance in programming. If you pass your bag to another class (your employee), they can access the contents of your bag. In the end, the bag is with them because you gave it to them. In programming, the class that inherits (your employee) can access the features within the parent class (you, the businessman) because the bag is with them.</p><p>In programming, there is a concept called HYPE-STACK situation. ‘HYPE’ is the room where reference holders are located, and ‘STACK’ directly holds the reference itself. So, what does this story actually convey?</p><p>In the world of programming, you resemble reference holders, and your bags have reference numbers, like passwords unique to each bag. You know the passwords for all your bags, the references. Therefore, you can say, “This is my bag.” I can explain the businessman-bag analogy in programming through an example with an array. Let’s consider an array containing numbers from 1 to 10, named ‘numbers.’ The ‘numbers’ array is in the ‘HYPE’ part, and the numbers inside it are in the ‘STACK’ part. The numbers in ‘HYPE’ represent the numbers of the bags. This way, you can always retrieve your bag from ‘STACK’ without shuffling through them.</p><p>Now, can this person reject their bag, meaning, don’t they have the right to do so? Yes, they can. Let’s say you have bags A and B; A’s password is 134, and B’s password is 456. If this person wants to change the password of A to 456 and also change the number on the bag to 456, they will realize that both A and B bags essentially become B bags. Now, there is no A bag anymore. In other words, when bag numbers and bag passwords are the same, bags can transform into each other. Reference types in programming work similarly; the numbers on the bags are the passwords for the bags. These passwords are always in the person’s mind, but it’s within their power to forget or change them.</p><p>Value types, however, are not like reference types. If you say, “My lucky number is 15,” it remains 15 until you change it. You don’t entrust this number to someone else; it remains concealed within you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2fd21f43bc8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>