<?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 Aslihan Akbiyik on Medium]]></title>
        <description><![CDATA[Stories by Aslihan Akbiyik on Medium]]></description>
        <link>https://medium.com/@aslihanakbiyik?source=rss-2a407be6aab7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*G4M2RYM9n_5cf1wNoYR5vQ.jpeg</url>
            <title>Stories by Aslihan Akbiyik on Medium</title>
            <link>https://medium.com/@aslihanakbiyik?source=rss-2a407be6aab7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 11:37:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aslihanakbiyik/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[The Dark Side of Efficiency]]></title>
            <link>https://aslihanakbiyik.medium.com/the-dark-side-of-efficiency-988bcde7b0c9?source=rss-2a407be6aab7------2</link>
            <guid isPermaLink="false">https://medium.com/p/988bcde7b0c9</guid>
            <category><![CDATA[efficiency]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[relearning]]></category>
            <dc:creator><![CDATA[Aslihan Akbiyik]]></dc:creator>
            <pubDate>Mon, 21 Sep 2026 18:37:40 GMT</pubDate>
            <atom:updated>2026-09-21T18:37:40.766Z</atom:updated>
            <content:encoded><![CDATA[<p>I like efficiency. I like understanding a problem, finding the shortest way to deal with it and moving on.</p><p>The problem is, after doing this for long enough, you start expecting everything else to work at the same speed.</p><p>A meeting feels too long. Someone is explaining something and you already know where it is going. A question feels obvious, a mistake looks avoidable, and at some point you start thinking, <em>how are we still here?</em></p><p>Experience changes what feels normal.</p><p>Once you have seen the same problem many times, the next one looks easy. Once you know the shortcut, watching somebody take the long way feels unnecessary.</p><p>But it was not always easy for us either.</p><p>You notice this very clearly when you go back to something you have not touched for a long time. Suddenly you are searching for things you once knew by heart, trying something that does not work, going back, checking again and basically learning the thing for a second time.</p><p>And it is a bit humbling, actually.</p><p>You look at something you used to know and think, <em>what did I do here last time?</em></p><p>Then you try a few things. One of them works. You remember another piece. You start seeing the pattern again. After a while, the thing that looked completely foreign an hour ago starts feeling familiar.</p><p>That part is easy to forget.</p><p>We usually remember the point where something became easy, not all the attempts before it. The wrong guesses, the stupid questions, the things we tried just to see what would happen.</p><p>Some people understand certain things faster, some are naturally better at particular kinds of work. That is true.</p><p>But I also think we underestimate how much can change just by spending enough time with something.</p><p>A lot of things we are comfortable doing today were once things we had no idea how to do. We just kept touching them until they stopped feeling foreign.</p><p>And relearning something makes this strangely visible.</p><p>You can actually watch yourself go from <em>I have no idea what I am doing</em> to <em>oh, right, now I remember</em>.</p><p>That progress may be small, but it is real.</p><p>Which is probably why I find it hard to believe that the first few bad attempts at something mean very much.</p><p>Sometimes you are bad at it because you are bad at it.</p><p>Sometimes you are just early.</p><p>So if something feels difficult, confusing or embarrassingly slow at the beginning, maybe the answer is not to decide too quickly that it is “not for you.”</p><p>Touch it again.</p><p>Try something.</p><p>Get it wrong.</p><p>Come back to it later.</p><p>A surprising amount of learning seems to happen exactly like that.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=988bcde7b0c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Takeaways from the AWS Outage]]></title>
            <link>https://aslihanakbiyik.medium.com/my-takeaways-from-the-aws-outage-02d99c8cc0c5?source=rss-2a407be6aab7------2</link>
            <guid isPermaLink="false">https://medium.com/p/02d99c8cc0c5</guid>
            <category><![CDATA[thinking]]></category>
            <category><![CDATA[aws-outage]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[infrastructure]]></category>
            <dc:creator><![CDATA[Aslihan Akbiyik]]></dc:creator>
            <pubDate>Mon, 27 Oct 2025 18:58:53 GMT</pubDate>
            <atom:updated>2025-10-28T07:44:55.488Z</atom:updated>
            <content:encoded><![CDATA[<p>It’s always DNS.<br>That’s the joke.</p><p>But this time, it wasn’t funny because half of the internet went dark, and the punchline cost billions.</p><p>When AWS went down, it wasn’t a “server crash.” It was automation turning against itself.</p><p><strong>Two systems;</strong><br>one to plan DNS changes, another to execute them. Started racing.</p><h3>The result:</h3><p>Empty DNS records.<br> No IPs, no routing, no service discovery.<br> Essentially, the cloud forgot where it lived.</p><p><strong>And what that reminds me is simple:</strong><br>You can’t automate responsibility.<br>You can script deployments, containerise workloads, set health checks, and monitor uptime 24/7<br><strong> but you still need to <em>think</em>.</strong><br> Automation doesn’t understand context. Humans do.</p><p>When I read the post-mortem, the problem wasn’t just the bug, it was the <strong><em>trust</em></strong><em>.</em><br> We trusted automation to catch its own fall.<br> We assumed redundancy meant immunity.<br> But when both redundant systems share the same logic flaw, they fail together.</p><p><strong>It made me ask some questions:<br></strong>- What if the automation collides with itself?<br>- What if the safety net is wired to the same node it’s supposed to protect?<br>- What if redundancy isn’t really redundant?</p><p>It might sound like a cliché, but <br><em>Quis custodiet ipsos custodes?<br></em>sums it up perfectly.</p><p>Every incident like this feels like a mirror for infrastructure people.<br> We spend months building resilience, then forget to design for human curiosity.<br> We need to question the <em>mechanics</em>, not just the metrics.</p><p>Do we test what happens when DNS returns empty?<br> Do we simulate failure of automation layers?<br> Do we document what depends on what — and how it dies?</p><p>Because when the automation layer fails silently, your entire stack becomes a black box.</p><h4>Lessons I Drew From It</h4><p>Keep questioning your assumptions.<br> Keep doubting your certainty.<br> Keep asking why something that shouldn’t fail, still can.</p><p>Because failure is rarely a lack of redundancy, in fact it’s a lack of imagination.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=02d99c8cc0c5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why You Should Keep Using Your Intel Mac in 2025?]]></title>
            <link>https://aslihanakbiyik.medium.com/why-you-should-keep-using-your-intel-mac-in-2025-b6a67c09d9fd?source=rss-2a407be6aab7------2</link>
            <guid isPermaLink="false">https://medium.com/p/b6a67c09d9fd</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[operating-systems]]></category>
            <category><![CDATA[freelancing]]></category>
            <dc:creator><![CDATA[Aslihan Akbiyik]]></dc:creator>
            <pubDate>Sun, 24 Aug 2025 13:25:05 GMT</pubDate>
            <atom:updated>2025-08-24T13:28:27.472Z</atom:updated>
            <content:encoded><![CDATA[<p>Yes, Apple Silicon is powerful. No doubt. But I still use my Intel Mac every single day in 2025 – and I’m not planning to stop anytime soon.</p><p>Not because I’m nostalgic.</p><p>Because it still does something very few machines can: It runs macOS, Manjaro Linux, and Windows, cleanly, reliably, and side by side.</p><p>That’s not a coincidence. That’s a deliberate choice.</p><p>Here’s why this setup still matters;</p><p>If you’re doing real system-level work, you know the truth: You don’t get to pick your OS and stick with it.</p><p>You work across:</p><p>- Linux containers and bare metal</p><p>- Windows enterprise environments</p><p>- Apple-based dev/test/CI setups</p><p>Running all three OSes on the same physical machine means I have a full-featured lab at my fingertips. I can:</p><p>Boot into Manjaro for real kernel or Docker testing.</p><p>Use Windows for VPNs, Office docs, or policy testing.</p><p>Stay in macOS for scripting, note-taking, or day-to-day tasks.</p><p>It’s a systems engineer’s Swiss Army knife.</p><h3><strong>I Can Hear You Are Asking `Why I Picked Manjaro`</strong></h3><p>I could’ve gone full Arch. But I also like getting work done.</p><p>Manjaro gives me:</p><p>Rolling releases without chaos</p><p>Access to the AUR for edge-case tools and custom builds</p><p>A clean, minimalist system that I control – but don’t have to babysit</p><p>For tasks like firewall rule testing, container runtime experiments, or just running a bleeding-edge stack on a stable base -&gt; Manjaro hits the sweet spot.</p><h3>Windows, It is Still There…</h3><p>Do I like using Windows? Not really. Do I need to? All the time.</p><p>Some clients still use:</p><p>- Microsoft VPN tools</p><p>- PowerShell scripts</p><p>- Active Directory policies</p><p>- Desktop applications that don’t run anywhere else</p><p>So instead of fighting it, I just boot into it. Do the thing. Get out.</p><p>Keeping Windows as an isolated boot or VM has been practical, not painful.</p><h3>OSX Still Holds a Place</h3><p>There’s a reason macOS became so popular with developers and engineers:</p><p>It’s Unix under the hood – with a polished GUI on top.</p><p>You get SSH, zsh, scripting, and especially Homebrew.</p><p>Tools like Notes, Mail, and even Xcode are legitimately useful.</p><p>I use macOS for the things that don’t belong in a terminal. It’s where I write, manage projects, and sometimes code in peace.</p><h3>This Isn’t About Nostalgia – It’s About Systems Thinking</h3><p>Running macOS, Manjaro, and Windows on the same machine isn’t just about flexibility – it’s how I train.</p><p>Not just what I use, but how I use it shapes the way I learn:</p><p>When you run Linux on an old machine – say one with a slow spinning HDD – you start noticing things Windows hides from you:</p><p>Why is the battery lasting 2 hours longer on Linux than it did on Windows?</p><p>Why is your disk read speed suddenly inconsistent? -&gt; You realise the drive is wearing out.</p><p>Is the lag coming from a hardware fault, or is the power supply inadequate? -&gt; You dig deeper, and you find out.</p><p>Linux doesn’t abstract things away. It makes them transparent – and that pushes you to really understand your system.</p><p>Even something as mundane as connecting to Wi-Fi becomes a lesson:</p><p>Windows: “Connected.” Done.</p><p>Linux: You run nmcli, inspect interfaces with `ifconfig`, compare bridges and NAT configurations… And somewhere in that process, you become the person who knows what’s happening! Not the one who reads about it later.</p><p>That’s the real value here: You stop learning by reading docs, you start learning by doing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b6a67c09d9fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Keep Asking Questions for a Better Life]]></title>
            <link>https://aslihanakbiyik.medium.com/keep-asking-questions-for-a-better-life-7b860b117f99?source=rss-2a407be6aab7------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b860b117f99</guid>
            <dc:creator><![CDATA[Aslihan Akbiyik]]></dc:creator>
            <pubDate>Thu, 09 Feb 2023 19:23:36 GMT</pubDate>
            <atom:updated>2023-02-09T19:23:36.702Z</atom:updated>
            <content:encoded><![CDATA[<p>You may always ask yourself how it&#39;s made?, how did it happen? or how do I push myself to be better? with some variants… and it may feel overwhelming.</p><p>But the most important thing I learnt from the software development phases is <strong>keep asking questions</strong> to reach a conclusion. When you feel exhausted, you must remember that this is the reminder to not give up. I don’t want to sound like I’m giving out-of-date self improvement tips. However completing all projects is critical; the key is not giving up on trying. Haven’t you known how to bubble sort an array? I’m sure you can find that answer in your first Google search. But what to do when you have a stock management system homework in Programming 101 class? You have nested questions to build that homework. Haven’t you found the next step when building this management system? You should just keep asking differently.</p><p>Asking questions keeps your mind awake, jogs your memory. Inquiring in various ways leads to progress because it stimulates creativity. If you ask questions, it will be harder to be defrauded. If you ask questions, you can learn through your curiosity, which is golden.Because asking questions is a form of suspicion. Like Descartes said, If you would be a real seeker after truth, it is necessary that at least once in your life you doubt, as far as possible, all things.</p><p>Keep asking and taking notes from their answers. Keep asking, especially in political ways, for a better life.</p><p><a href="https://aslihan.live/">This writing is from my blog</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b860b117f99" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mozilla Türkiye Gönüllü Topluluğu’na Davetlimizsiniz!]]></title>
            <link>https://aslihanakbiyik.medium.com/mozilla-t%C3%BCrkiye-g%C3%B6n%C3%BCll%C3%BC-toplulu%C4%9Funa-davetlimizsiniz-d501113e84e6?source=rss-2a407be6aab7------2</link>
            <guid isPermaLink="false">https://medium.com/p/d501113e84e6</guid>
            <category><![CDATA[mozilla]]></category>
            <category><![CDATA[türkiye]]></category>
            <category><![CDATA[topluluk]]></category>
            <category><![CDATA[açık-kaynak]]></category>
            <category><![CDATA[yazılım]]></category>
            <dc:creator><![CDATA[Aslihan Akbiyik]]></dc:creator>
            <pubDate>Sat, 10 Jul 2021 19:12:39 GMT</pubDate>
            <atom:updated>2021-12-09T19:08:02.254Z</atom:updated>
            <content:encoded><![CDATA[<p>Türkçeye çevrim sürecine uzun bir aradan sonra katkıda bulunmak amacıyla girdiğim MDN Web Docs adresinde Mozilla’nın gözüme ilişen alt linklerinde kaybolurken <a href="https://community.mozilla.org/en/">https://community.mozilla.org/en/</a> adresine ulaştım. Ana sayfada birçok ülkenin hatta birçok ülkeden birçok üniversitenin toplulukları olduğunu gördüğümde, hemen okulum Dokuz Eylül için aramalar yaptım. Bulamayınca Türkiye adına bir arama yaptım; karşıma hiçbir şey çıkmayınca biraz daha bakındım ve <a href="https://community.mozilla.org/en/groups/mozilla-turkey/">https://community.mozilla.org/en/groups/mozilla-turkey/</a> adresindeki topluluğu oluşturup diğer toplulukların yaptığı gibi hem Mozilla’nın ve ürünlerinin yerelleşmesine katkıda bulunmak hem de birlikte kod yazacağımız, etkinlikler düzenleyebileceğimiz bir platform oluşturmak için bir adım atmayı denedim.</p><p>Bu gönüllü topluluğumuza, Mozilla’ya ve açık kaynaklı yazılıma destek olmak isteyen herkes davetlimizdir. Sayımız arttıkça daha büyük işler başarabileceğimize inanıyoruz.</p><p>Tüm iletişim linklerimiz <a href="https://community.mozilla.org/en/groups/mozilla-turkey/">https://community.mozilla.org/en/groups/mozilla-turkey/</a> adresimizde mevcut olup;</p><p><a href="https://discord.com/invite/7V5YFr2gNn">Discord kanalımız</a></p><p><a href="https://t.me/joinchat/vbkBtebTO91iMWQ0">Telegram kanalımız</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d501113e84e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[C++ Ile Nesne Yönelimli Programlama (Overloading(Aşırı Yükleme))]]></title>
            <link>https://aslihanakbiyik.medium.com/c-ile-nesne-y%C3%B6nelimli-programlama-overloading-a%C5%9F%C4%B1r%C4%B1-y%C3%BCkleme-3c54f3ed30fd?source=rss-2a407be6aab7------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c54f3ed30fd</guid>
            <category><![CDATA[çeviri]]></category>
            <category><![CDATA[cpp]]></category>
            <category><![CDATA[nesne-yönelimli]]></category>
            <category><![CDATA[programlama]]></category>
            <category><![CDATA[c]]></category>
            <dc:creator><![CDATA[Aslihan Akbiyik]]></dc:creator>
            <pubDate>Fri, 05 Mar 2021 14:05:32 GMT</pubDate>
            <atom:updated>2021-03-05T14:05:32.656Z</atom:updated>
            <content:encoded><![CDATA[<p>Bu yazılar <a href="https://www.tutorialspoint.com/cplusplus/cpp_classes_objects.htm">https://www.tutorialspoint.com/cplusplus/</a> adresindeki yazı dizilerinin çevirileridir.</p><p>C++ bir fonksiyon adı veya aynı kapsamdaki bir operator için birden fazla tanım belirtmenize olanak sağlar. Bu, sırasıyla fonksiyon overloading(aşırı yükleme) ve operator(işleç) overloading (aşırı yükleme) olarak adlandırılır.</p><p>Aşırı yüklenmiş(overloaded) bir bildirme, her iki bildirmenin de farklı argümanlara ve açıkça farklı tanımlara(implementelere) sahip olması dışında, aynı kapsamda önceden bildirilen bir bildirme ile aynı ada sahip bir bildirmedir.</p><p>Aşırı yüklenmiş bir fonksiyonu veya operatoru çağırdığınızda, derleyici; fonksiyonu veya operatoru çağırmak için kullandığınız bağımsız değişken tiplerini tanımlarda belirtilen parametrelerin tipleriyle kıyaslayarak kullanılacak en uygun tanımı belirler.</p><p>En uygun aşırı yüklenmiş fonksiyonu veya operatoru seçme işlemine overload resolution(aşırı yükleme çözümü) denir.</p><h3>Fonksiyon Aşırı Yüklemesi</h3><p>Aynı kapsamda aynı fonksiyon adı için birden fazla tanımınız olabilir. Ama fonksiyonun tanımı, tipler ve/veya bağımsız değişken listesindeki bağımsız değişkenlerin sayısı açısından birbirinden farklı olmalıdır. Yalnızca dönüş türüne göre farklılık gösteren fonksiyon bildirimlerini aşırı yükleyemezsiniz.</p><p>Aşağıda, farklı veri tiplerini yazdırmak için aynı olan print() fonksiyonu kullanılan örnek verilmiştir -</p><blockquote>#include &lt;iostream&gt;</blockquote><blockquote>using namespace std;</blockquote><blockquote>class printData {</blockquote><blockquote>public:</blockquote><blockquote>void print(int i) {</blockquote><blockquote>cout &lt;&lt; “int tipi yazdiriliyor: “ &lt;&lt; i &lt;&lt; endl;</blockquote><blockquote>}</blockquote><blockquote>void print(double f) {</blockquote><blockquote>cout &lt;&lt; “float tipi yazdiriliyor: “ &lt;&lt; f &lt;&lt; endl;</blockquote><blockquote>}</blockquote><blockquote>void print(char* c) {</blockquote><blockquote>cout &lt;&lt; “character tipi yazdiriliyor: “ &lt;&lt; c &lt;&lt; endl;</blockquote><blockquote>}</blockquote><blockquote>};</blockquote><blockquote>int main(void) {</blockquote><blockquote>printData pd;</blockquote><blockquote>// Tamsayı yazdırmak için print çağrılıyor</blockquote><blockquote>pd.print(5);</blockquote><blockquote>// float yazdırmak için print çağrılıyor</blockquote><blockquote>pd.print(500.263);</blockquote><blockquote>// Karakter yazdırmak için print çağrılıyor</blockquote><blockquote>pd.print(“Merhaba C++”);</blockquote><blockquote>return 0;</blockquote><blockquote>}</blockquote><p>Kod derlenip çalıştırıldığında takip eden sonuç alınır -</p><blockquote>int tipi yazdiriliyor: 5</blockquote><blockquote>float tipi yazdiriliyor: 500.263</blockquote><blockquote>character tipi yazdiriliyor:: Merhaba C++</blockquote><h3>Operator Aşırı Yüklemesi</h3><p>C++’da bulunan yerleşik operator’lerin çoğunu yeniden tanımlayabilir veya aşırı yükleyebilirsiniz. Böylelikle, bir programcı kullanıcı tanımlı tiplere sahip operator’leri de kullanabilir.</p><p>Aşırı yüklenmiş operator’ler, özel adlara sahip fonksiyonlardır: “operator” anahtar kelimesi ardından tanımlanmakta olan operator için semboldür. Herhangi bir fonksiyonda olduğu gibi, aşırı yüklenmiş bir operator de parametre listesine ve dönüş tipine sahiptir.</p><blockquote>Kutu operator+(const Kutu&amp;);</blockquote><p>İki Kutu nesnesi eklemek için kullanılabilecek toplama operator’ünü bildirir, ve son Kutu nesnesini döndürür. Aşırı yüklenmiş operator’lerin çoğu, üye olmayan sıradan fonksiyonlar veya sınıf üyesi fonksiyonlar olarak tanımlanabilir. Yukarıdaki fonksiyonu bir sınıfın üye olmayan fonksiyonu olarak tanımlamamız(bildirmemiz) durumunda, her operator için aşağıda olduğu gibi iki argüman iletmemiz gerekir -</p><blockquote>Kutu operator+(const Kutu&amp;, const Kutu&amp;);</blockquote><p>Takip eden örnekte, bir üye fonksiyonu kullanarak operator aşırı yükleme kavramı gösterilmiştir. Burada, özelliklerine bu nesne kullanılarak erişilecek bir nesne argüman olarak aktarılır, operator’ü çağıracak nesneye aşağıdaki gibi erişilir -</p><blockquote>#include &lt;iostream&gt;</blockquote><blockquote>using namespace std;</blockquote><blockquote>class Kutu {</blockquote><blockquote>public:</blockquote><blockquote>double hacimHesapla(void) {</blockquote><blockquote>return uzunluk * genislik * yukseklik;</blockquote><blockquote>}</blockquote><blockquote>void uzunlukAyarla( double uz ) {</blockquote><blockquote>uzunluk = uz;</blockquote><blockquote>}</blockquote><blockquote>void genislikAyarla( double gen ) {</blockquote><blockquote>genislik = gen;</blockquote><blockquote>}</blockquote><blockquote>void yukseklikAyarla( double yuk ) {</blockquote><blockquote>yukseklik = yuk;</blockquote><blockquote>}</blockquote><blockquote>// + operator’ü ile 2 Kutu objesini aşırı yükleme aracılığıyla ekleme.</blockquote><blockquote>Kutu operator+(const Kutu&amp; b) {</blockquote><blockquote>Kutu kutu;</blockquote><blockquote>kutu.uzunluk = this-&gt;uzunluk + b.uzunluk;</blockquote><blockquote>kutu.genislik = this-&gt;genislik + b.genislik;</blockquote><blockquote>kutu.yukseklik = this-&gt;yukseklik + b.yukseklik;</blockquote><blockquote>return kutu;</blockquote><blockquote>}</blockquote><blockquote>private:</blockquote><blockquote>double uzunluk; // kutu’nun uzunlugu</blockquote><blockquote>double genislik; // kutu’nun genisligi</blockquote><blockquote>double yukseklik; // kutu’nun yuksekligi</blockquote><blockquote>};</blockquote><blockquote>// Programın ana fonksiyonu</blockquote><blockquote>int main() {</blockquote><blockquote>Kutu Kutu1; // Kutu tipli Kutu1’in bildirimi</blockquote><blockquote>Kutu Kutu2; // Kutu tipli Kutu2’nin bildirimi</blockquote><blockquote>Kutu Kutu3; // Kutu tipli Kutu3’ün bildirimi</blockquote><blockquote>double hacim = 0.0; // Kutunun hacimini tutacak değişken</blockquote><blockquote>// Kutu 1 özelleştirimi</blockquote><blockquote>Kutu1.uzunlukAyarla(6.0);</blockquote><blockquote>Kutu1.genislikAyarla(7.0);</blockquote><blockquote>Kutu1.yukseklikAyarla(5.0);</blockquote><blockquote>// Kutu 2 özelleştirimi</blockquote><blockquote>Kutu2.uzunlukAyarla(12.0);</blockquote><blockquote>Kutu2.genislikAyarla(13.0);</blockquote><blockquote>Kutu2.yukseklikAyarla(10.0);</blockquote><blockquote>// Kutu1 hacmi</blockquote><blockquote>hacim = Kutu1.hacimHesapla();</blockquote><blockquote>cout &lt;&lt; “Kutu1’in hacmi : “ &lt;&lt; hacim &lt;&lt;endl;</blockquote><blockquote>// Kutu2 hacmi</blockquote><blockquote>hacim = Kutu2.hacimHesapla();</blockquote><blockquote>cout &lt;&lt; “Kutu2’nin hacmi : “ &lt;&lt; hacim &lt;&lt;endl;</blockquote><blockquote>// İki nesneyi takip eden şekilde topla</blockquote><blockquote>Kutu3 = Kutu1 + Kutu2;</blockquote><blockquote>// Kutu3 hacmi</blockquote><blockquote>hacim = Kutu3.hacimHesapla();</blockquote><blockquote>cout &lt;&lt; “Kutu3’un hacmi : “ &lt;&lt; hacim &lt;&lt;endl;</blockquote><blockquote>return 0;</blockquote><blockquote>}</blockquote><p>Kod derlenip çalıştırıldığında, takip eden sonuç elde edilir -</p><blockquote>Kutu1’in hacmi : 210</blockquote><blockquote>Kutu2’nin hacmi : 1560</blockquote><blockquote>Kutu3’un hacmi : 5400</blockquote><h3>Aşırı Yüklenebilen/Yüklenemeyen Operator’ler (Overloadable/Non-overloadable)</h3><p>Aşırı yüklenebilen operator’ler:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Ec2MOuf-OqttKSibWU1-g.png" /></figure><p>Aşırı yüklenemeyenler:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GptrUBrjrEEEStMUrIEQ8g.png" /></figure><h3>Aşırı Yükleme Örnekleri</h3><p>Daha iyi anlamanız için değinilecek örneklerden bazıları:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SFpusk_J6XaTqX4oXKgnyg.png" /></figure><p><a href="https://www.tutorialspoint.com/cplusplus/cpp_overloading.htm">https://www.tutorialspoint.com/cplusplus/cpp_overloading.htm</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c54f3ed30fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[C++ Ile Nesne Yönelimli Programlama (Miras/Kalıtım(Inheritance))]]></title>
            <link>https://aslihanakbiyik.medium.com/c-ile-nesne-y%C3%B6nelimli-programlama-miras-kal%C4%B1t%C4%B1m-inheritance-db0a1cbfd75?source=rss-2a407be6aab7------2</link>
            <guid isPermaLink="false">https://medium.com/p/db0a1cbfd75</guid>
            <category><![CDATA[cpp]]></category>
            <category><![CDATA[c]]></category>
            <category><![CDATA[çeviri]]></category>
            <category><![CDATA[nesne-yönelimli]]></category>
            <category><![CDATA[programlama]]></category>
            <dc:creator><![CDATA[Aslihan Akbiyik]]></dc:creator>
            <pubDate>Thu, 31 Dec 2020 17:06:06 GMT</pubDate>
            <atom:updated>2020-12-31T17:06:06.523Z</atom:updated>
            <content:encoded><![CDATA[<p>Bu yazılar <a href="https://www.tutorialspoint.com/cplusplus/cpp_classes_objects.htm">https://www.tutorialspoint.com/cplusplus/</a> adresindeki yazı dizilerinin çevirileridir.</p><p>Nesne yönelimli programlamadaki en önemli konseptlerden biri miras kavramıdır. Miras, bir sınıfı başka bir sınıf açısından tanımlamaya izin verir, bu da bir uygulama oluşturmayı ve sürdürmeyi kolaylaştırır. Aynı zamanda kod işlevselliğini yani yeniden kullanma ve hızlı uygulama süresi için bir fırsat yaratır.</p><p>Bir sınıf oluştururken, tamamen yeni veri üyeleri ve üye fonksiyonları yazmak yerine, programcı yeni sınıfı mevcut bir sınıfın üyelerini miras alıp oluşturmaya karar verebilir. Bu mevcut sınıfa temel sınıf adı verilir ve yeni sınıfa türetilmiş sınıf adı verilir.</p><p>Miras fikri bir ilişkidir. Örneğin, memeli BİR hayvan, köpek BİR memelidir, dolayısıyla köpek BİR hayvandır vb.</p><h3>Temel ve Türetilmiş Sınıflar</h3><p>Bir sınıf, birden fazla sınıftan türetilebilir; bu, verileri ve fonksiyonları birden çok temel sınıftan devralabileceği anlamına gelir. Türetilmiş bir sınıfı tanımlamak için, temel sınıf(lar)ı belirtmek için bir sınıf türetme listesi kullanırız. Bir sınıf türetme listesi, bir veya daha fazla temel sınıfı adlandırır ve şu biçime sahiptir:</p><blockquote>class türetilmiş-sınıf: erişim-belirteci temel-sınıf</blockquote><p>Erişim belirtecinin public(genel),protected(korumalı) veya private(özel) olduğu ve temel sınıfın önceden tanımlanmış bir sınıfın adı olduğu durumlarda temel-sınıf önceden tanımlanmış bir sınıfın adıdır. Eğer erişim belirteci kullanılmazsa varsayılan olarak private(özel) kullanılır.</p><p>Aşağıdaki Sekil temel sınıfını ve ondan türetilmiş Dikdortgen sınıfını inceleyelim -</p><blockquote><a href="http://tpcg.io/ykk4hq">Live Demo</a></blockquote><blockquote>#include &lt;iostream&gt;</blockquote><blockquote>using namespace std;</blockquote><blockquote>// Temel sınıf</blockquote><blockquote>class Sekil {</blockquote><blockquote>public:</blockquote><blockquote>void genisligiAyarla(int g) {</blockquote><blockquote>genislik = g;</blockquote><blockquote>}</blockquote><blockquote>void yuksekligiAyarla(int y) {</blockquote><blockquote>yukseklik = y;</blockquote><blockquote>}</blockquote><blockquote>protected:</blockquote><blockquote>int genislik;</blockquote><blockquote>int yukseklik;</blockquote><blockquote>};</blockquote><blockquote>// Türetilmiş sınıf</blockquote><blockquote>class Dikdortgen: public Sekil {</blockquote><blockquote>public:</blockquote><blockquote>int alaniHesapla() {</blockquote><blockquote>return (genislik * yukseklik);</blockquote><blockquote>}</blockquote><blockquote>};</blockquote><blockquote>int main(void) {</blockquote><blockquote>Dikdortgen Dikd;</blockquote><blockquote>Dikd.genisligiAyarla(5);</blockquote><blockquote>Dikd.yuksekligiAyarla(7);</blockquote><blockquote>// Nesnenin alanını yazdır.</blockquote><blockquote>cout &lt;&lt; “Toplam alan: “ &lt;&lt; Dikd.alaniHesapla() &lt;&lt; endl;</blockquote><blockquote>return 0;</blockquote><blockquote>}</blockquote><p>Kod derlenip çalıştırıldığında, takip eden sonucu alırız -</p><blockquote>Toplam alan: 35</blockquote><h3>Erişim Kontrolü ve Miras</h3><p>Türetilmiş bir sınıf, temel sınıfın private(özel) olmayan tüm üyelerine erişebilir. Böylelikle, türetilmiş sınıfların üye fonksiyonlarına erişilememesi gereken temel sınıf üyeleri, temel sınıfta özel olarak bildirilmelidir.</p><p>Farklı erişim türlerini aşağıdakilere göre özetleyebiliriz — bunlara kimlerin erişebileceği :</p><p>Türetilmiş bir sınıf, aşağıdaki istisnalarla tüm temel sınıf yöntemlerini miras alır -</p><p>-Temel sınıfın yapıcı, yıkıcı ve kopya yapıcıları</p><p>-Temel sınıfın aşırı yüklenen(overload) operatörleri</p><p>-Temel sınıfın arkadaş fonksiyonları</p><h3>Mirasın Tipleri</h3><p>Bir temel sınıftan bir sınıf türetilirken, temel sınıf public, protected veya public miras yoluyla miras alınabilir. Miras türü, yukarıda açıklandığı gibi erişim belirticisi tarafından belirlenir.</p><p>Protected veya private mirası neredeyse hiç kullanmıyoruz genel olarak public miras kullanılır.</p><p>Farklı miras türleri kullanılırken aşağıdaki kurallar uygulanır -</p><p><strong>Public(Genel) Miras</strong> — Bir genel temel sınıftan bir sınıf türetilirken, temel sınıfın genel üyeleri türetilmiş sınıfın genel üyeleri olur ve temel sınıfın protected üyeleri türetilmiş sınıfın protected üyeleri olur. Bir temel sınıfın private üyelerine hiçbir zaman doğrudan türetilmiş bir sınıftan erişilemez, ancak temel sınıfın public ve protected üyelerine yapılan çağrılar aracılığıyla erişilebilir.</p><p><strong>Protected(Korumalı) Miras</strong> — Korumalı bir temel sınıftan türetilirken, temel sınıfın public ve protected üyeleri türetilmiş sınıfın protected üyeleri haline gelir.</p><p><strong>Private(Özel) Miras</strong> — Private bir temel sınıftan türetilirken, temel sınıfın public ve protected üyeleri türetilmiş sınıfın private üyeleri olur.</p><h3>Çoklu Miras(Multiple Inheritance)</h3><p>Bir C++ sınıfı, üyeleri birden fazla sınıftan miras alabilir ve işte genişletilmiş sözdizimi -</p><blockquote>class türetilmiş-sınıf: Aerişim-tabanı, Berişim-tabanı….</blockquote><p>Erişim public, protected veya private olduğunda her temel sınıf için verilenler yukarıda gösterildiği gibi virgülle ayrılacaktır. Takip eden örnekle görelim -</p><blockquote><a href="http://tpcg.io/NPe3oQ">Live Demo</a></blockquote><blockquote>#include &lt;iostream&gt;</blockquote><blockquote>using namespace std;</blockquote><blockquote>// Temel sınıf Şekil</blockquote><blockquote>class Sekil {</blockquote><blockquote>public:</blockquote><blockquote>void genisligiAyarla(int g) {</blockquote><blockquote>genislik = g;</blockquote><blockquote>}</blockquote><blockquote>void yuksekligiAyarla(int y) {</blockquote><blockquote>yukseklik = y;</blockquote><blockquote>}</blockquote><blockquote>protected:</blockquote><blockquote>int genislik;</blockquote><blockquote>int yukseklik;</blockquote><blockquote>};</blockquote><blockquote>// Temel sınıf BoyaUcreti</blockquote><blockquote>class BoyaUcreti {</blockquote><blockquote>public:</blockquote><blockquote>int ucretiHesapla(int alan) {</blockquote><blockquote>return alan * 70;</blockquote><blockquote>}</blockquote><blockquote>};</blockquote><blockquote>// Türetilmiş sınıf</blockquote><blockquote>class Dikdortgen: public Sekil, public BoyaUcreti {</blockquote><blockquote>public:</blockquote><blockquote>int alaniHesapla() {</blockquote><blockquote>return (genislik * yukseklik);</blockquote><blockquote>}</blockquote><blockquote>};</blockquote><blockquote>int main(void) {</blockquote><blockquote>Dikdortgen Dikd;</blockquote><blockquote>int alan;</blockquote><blockquote>Dikd.genisligiAyarla(5);</blockquote><blockquote>Dikd.yuksekligiAyarla(7);</blockquote><blockquote>alan = Dikd.alaniHesapla();</blockquote><blockquote>// Nesnenin alanını yazdır</blockquote><blockquote>cout &lt;&lt; “Toplam alan: “ &lt;&lt; Dikd.alaniHesapla() &lt;&lt; endl;</blockquote><blockquote>// Boyama ücretini yazdır</blockquote><blockquote>cout &lt;&lt; “Toplam boyama ücreti: $” &lt;&lt; Dikd.ucretiHesapla(alan) &lt;&lt; endl;</blockquote><blockquote>return 0;</blockquote><blockquote>}</blockquote><p>Kod derlenip çalıştırıldığında takip eden sonucu oluşturur -</p><blockquote>Toplam alan: 35</blockquote><blockquote>Toplam boyama ücreti: $2450</blockquote><p><a href="https://www.tutorialspoint.com/cplusplus/cpp_inheritance.htm">https://www.tutorialspoint.com/cplusplus/cpp_inheritance.htm</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db0a1cbfd75" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[C++ Ile Nesne Yönelimli Programlama(C++ Sınıflarına Sabit(Static) Üyeler)]]></title>
            <link>https://aslihanakbiyik.medium.com/c-ile-nesne-y%C3%B6nelimli-programlama-c-s%C4%B1n%C4%B1flar%C4%B1na-sabit-static-%C3%BCyeler-c7a568aeaf75?source=rss-2a407be6aab7------2</link>
            <guid isPermaLink="false">https://medium.com/p/c7a568aeaf75</guid>
            <category><![CDATA[programlama]]></category>
            <category><![CDATA[nesne-yönelimli]]></category>
            <category><![CDATA[cpp]]></category>
            <category><![CDATA[çeviri]]></category>
            <category><![CDATA[c]]></category>
            <dc:creator><![CDATA[Aslihan Akbiyik]]></dc:creator>
            <pubDate>Thu, 03 Dec 2020 14:59:19 GMT</pubDate>
            <atom:updated>2020-12-03T14:59:50.333Z</atom:updated>
            <content:encoded><![CDATA[<p>Bu yazılar <a href="https://www.tutorialspoint.com/cplusplus/cpp_classes_objects.htm">https://www.tutorialspoint.com/cplusplus/</a> adresindeki yazı dizilerinin çevirileridir.</p><p>“static” anahtar kelimesini kullanarak bir sınıf tanımlayabiliriz. Bir sınıfın bir üyesinin static olması sınıfın kaç adet nesnesinin oluşturulduğunun önemi olmadan static üyenin yalnızca bir kopyası olduğu anlamına gelir.</p><p>Static bir üye sınıfın tüm nesneleri tarafından paylaşılır. Başka bir tanımlama başlatması yoksa, ilk nesne oluşturulduğunda tüm static veriler sıfır olarak başlatılır(initialize). Bunu sınıf tanımına koyamayız, ama takip eden örnekte olduğu gibi sınıfın dışında hangi sınıfa ait olduğunu belirlemek için kapsam çözümleme operatörü :: kullanılarak static değişkeni yeniden bildirilerek başlatılabilir.</p><p>Static veri üyeleri kavramını anlamak için takip eden örneği deneyelim -</p><blockquote>#include &lt;iostream&gt;</blockquote><blockquote>using namespace std;</blockquote><blockquote>class Kutu {</blockquote><blockquote>public:</blockquote><blockquote>static int nesneSayisi;</blockquote><blockquote>// Yapıcı tanımı</blockquote><blockquote>Kutu(double u = 2.0, double g = 2.0, double y = 2.0) {</blockquote><blockquote>cout &lt;&lt;“Yapici cagrildi.” &lt;&lt; endl;</blockquote><blockquote>uzunluk = u;</blockquote><blockquote>genislik = g;</blockquote><blockquote>yukseklik = y;</blockquote><blockquote>// Her nesne oluşturulduğunda artır</blockquote><blockquote>nesneSayisi++;</blockquote><blockquote>}</blockquote><blockquote>double Hacim() {</blockquote><blockquote>return uzunluk * genislik * yukseklik;</blockquote><blockquote>}</blockquote><blockquote>private:</blockquote><blockquote>double uzunluk; // Kutunun uzunlugu</blockquote><blockquote>double genislik; // Kutunun genisligi</blockquote><blockquote>double yukseklik; // Kutunun yuksekligi</blockquote><blockquote>};</blockquote><blockquote>// Kutu sınıfından static üye başlatılması</blockquote><blockquote>int Kutu::nesneSayisi = 0;</blockquote><blockquote>int main(void) {</blockquote><blockquote>Kutu Kutu1(3.3, 1.2, 1.5); // kutu1 tanımı</blockquote><blockquote>Kutu Kutu2(8.5, 6.0, 2.0); // kutu2 tanımı</blockquote><blockquote>// Toplam nesne sayısını yazdır.</blockquote><blockquote>cout &lt;&lt; “Toplam nesneler: “ &lt;&lt; Kutu::nesneSayisi &lt;&lt; endl;</blockquote><blockquote>return 0;</blockquote><blockquote>}</blockquote><p>Yukarıdaki kod derlenip çalıştırıldığında takip eden sonucu oluşturur -</p><blockquote>Yapici cagrildi.</blockquote><blockquote>Yapici cagrildi.</blockquote><blockquote>Toplam nesneler: 2</blockquote><h3>Sabit(Static) Fonksiyon Üyeleri</h3><p>Bir fonksiyon üyesini static olarak bildirerek, onu sınıfın herhangi bir özel nesnesinden bağımsız hale getirirsiniz.</p><p>Static üye fonksiyonu, sınıfın hiçbir nesnesi olmasa ve fonksiyonlara yalnızca sınıf adı ve kapsam çözümleme operatörü :: kullanılarak erişilse bile çağrılabilir.</p><p>Static üye fonksiyonu sadece static veri üyesine, diğer static üye fonksiyonlarına ve sınıfın dışından diğer fonksiyonlara erişebilir.</p><p>Static üye fonksiyonlarının bir sınıf kapsamı vardır ve sınıfın bu işaretçisine erişimleri yoktur. Sınıfın bazı nesnelerinin oluşturulup oluşturulmadığını anlamak için static bir üye fonksiyonu kullanabilirsiniz.</p><p>Static fonksiyon üyelerini takip eden örnekle anlayalım -</p><blockquote>#include &lt;iostream&gt;</blockquote><blockquote>using namespace std;</blockquote><blockquote>class Kutu {</blockquote><blockquote>public:</blockquote><blockquote>static int nesneSayisi;</blockquote><blockquote>// Yapıcı tanımı</blockquote><blockquote>Kutu(double u = 2.0, double g = 2.0, double y = 2.0) {</blockquote><blockquote>cout &lt;&lt;”Constructor called.” &lt;&lt; endl;</blockquote><blockquote>uzunluk = u;</blockquote><blockquote>genislik = g;</blockquote><blockquote>yukseklik = y;</blockquote><blockquote>// Her nesne oluşturulduğunda artır</blockquote><blockquote>nesneSayisi++;</blockquote><blockquote>}</blockquote><blockquote>double Hacim() {</blockquote><blockquote>return uzunluk * genislik * yukseklik;</blockquote><blockquote>}</blockquote><blockquote>static int sayacKac() {</blockquote><blockquote>return nesneSayisi;</blockquote><blockquote>}</blockquote><blockquote>private:</blockquote><blockquote>double uzunluk; // Kutunun uzunlugu</blockquote><blockquote>double genislik; // Kutunun genisligi</blockquote><blockquote>double yukseklik; // Kutunun yuksekligi</blockquote><blockquote>};</blockquote><blockquote>// Kutu sınıfından static üye başlatımı</blockquote><blockquote>int Kutu::nesneSayisi = 0;</blockquote><blockquote>int main(void) {</blockquote><blockquote>// Nesne oluşturmadan toplam nesne sayısını yazdır.</blockquote><blockquote>cout &lt;&lt; “Ilk asama sayisi: “ &lt;&lt; Kutu::sayacKac() &lt;&lt; endl;</blockquote><blockquote>Kutu Kutu1(3.3, 1.2, 1.5); // kutu1 tanımı</blockquote><blockquote>Kutu Kutu2(8.5, 6.0, 2.0); // kutu2 tanımı</blockquote><blockquote>// Nesne oluşturduktan sonra toplam nesne sayısını yazdır.</blockquote><blockquote>cout &lt;&lt; “Son asama sayisi: “ &lt;&lt; Kutu::sayacKac() &lt;&lt; endl;</blockquote><blockquote>return 0;</blockquote><blockquote>}</blockquote><p>Kod derlenip çalıştırıldığında takip eden sonuç oluşur -</p><blockquote>Ilk asama sayisi: 0</blockquote><blockquote>Yapici cagrildi.</blockquote><blockquote>Yapici cagrildi.</blockquote><blockquote>Son asama sayisi: 2</blockquote><p><a href="https://www.tutorialspoint.com/cplusplus/cpp_static_members.htm">https://www.tutorialspoint.com/cplusplus/cpp_static_members.htm</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c7a568aeaf75" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[C++ Ile Nesne Yönelimli Programlama(C++ Sınıflarına Işaretçiler)]]></title>
            <link>https://aslihanakbiyik.medium.com/c-ile-nesne-y%C3%B6nelimli-programlama-c-s%C4%B1n%C4%B1flar%C4%B1na-i%C5%9Faret%C3%A7iler-c621065a83d5?source=rss-2a407be6aab7------2</link>
            <guid isPermaLink="false">https://medium.com/p/c621065a83d5</guid>
            <category><![CDATA[nesne-yönelimli]]></category>
            <category><![CDATA[c]]></category>
            <category><![CDATA[programlama]]></category>
            <category><![CDATA[cpp]]></category>
            <category><![CDATA[çeviri]]></category>
            <dc:creator><![CDATA[Aslihan Akbiyik]]></dc:creator>
            <pubDate>Thu, 19 Nov 2020 18:25:40 GMT</pubDate>
            <atom:updated>2020-11-19T18:25:40.403Z</atom:updated>
            <content:encoded><![CDATA[<p>Bu yazılar <a href="https://www.tutorialspoint.com/cplusplus/cpp_classes_objects.htm">https://www.tutorialspoint.com/cplusplus/</a> adresindeki yazı dizilerinin çevirileridir.</p><p>C++ sınıfına erişen işaretçi, bir yapının(struct) işaretçisi ile tam olarak aynı şekilde, yapılara işaretçilerle yaptığınız gibi üye erişim operatörünü “ -&gt; “ kullandığınız bir sınıfa işaretçinin üyelerine erişmek için kullanılır. Tüm işaretçilerde de olduğu gibi kullanmadan önce bu işaretçiyi de tanımlamanız ve başlangıç değerini atamanız gerekir.(initialization işlemi)</p><p>Bir sınıfa atanan işaretçi kavramı için takip eden örneği inceleyim -</p><blockquote>#include &lt;iostream&gt;</blockquote><blockquote>using namespace std;</blockquote><blockquote>class Kutu {</blockquote><blockquote>public:</blockquote><blockquote>// Yapıcı tanımlaması</blockquote><blockquote>Box(double u = 2.0, double g = 2.0, double y = 2.0) {</blockquote><blockquote>cout &lt;&lt;“Yapici cagrildi.” &lt;&lt; endl;</blockquote><blockquote>uzunluk = u;</blockquote><blockquote>genislik = g;</blockquote><blockquote>yukseklik = y;</blockquote><blockquote>}</blockquote><blockquote>double Hacim() {</blockquote><blockquote>return uzunluk * genislik * yukseklik;</blockquote><blockquote>}</blockquote><blockquote>private:</blockquote><blockquote>double uzunluk; // Kutunun uzunlugu</blockquote><blockquote>double genislik; // Kutunun genisligi</blockquote><blockquote>double yukseklik; // Kutunun yuksekligi</blockquote><blockquote>};</blockquote><blockquote>int main(void) {</blockquote><blockquote>Kutu Kutu1(3.3, 1.2, 1.5); // kutu1 tanımlanması</blockquote><blockquote>Kutu Kutu2(8.5, 6.0, 2.0); // kutu2 tanımlanması</blockquote><blockquote>Kutu *ptrKutu; // İşaretçinin bir sınıfa tanımlanması.</blockquote><blockquote>// İlk nesnenin adresinin işaretçiye kaydedilmesi</blockquote><blockquote>ptrKutu = &amp;Kutu1;</blockquote><blockquote>// Üye erişim operatörüyle erişim denemesi</blockquote><blockquote>cout &lt;&lt; “Kutu1’in hacmi: “ &lt;&lt; ptrKutu-&gt;Hacim() &lt;&lt; endl;</blockquote><blockquote>// İkinci nesnenin adres kaydı</blockquote><blockquote>ptrKutu = &amp;Kutu2;</blockquote><blockquote>// Üye erişim operatörüyle erişim denemesi</blockquote><blockquote>cout &lt;&lt; “Kutu2’nin hacmi: “ &lt;&lt; ptrKutu-&gt;Hacim() &lt;&lt; endl;</blockquote><blockquote>return 0;</blockquote><blockquote>}</blockquote><p>Kod derlenip çalıştırıldığında, takip eden sonucu oluşturur -</p><blockquote>Yapici cagrildi.</blockquote><blockquote>Yapici cagrildi.</blockquote><blockquote>Kutu1’in hacmi: 5.94</blockquote><blockquote>Kutu2’nin hacmi: 102</blockquote><p><a href="https://www.tutorialspoint.com/cplusplus/cpp_pointer_to_class.htm">Pointer to C++ Classes</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c621065a83d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[C++ Ile Nesne Yönelimli Programlama(this Işaretçisi)]]></title>
            <link>https://aslihanakbiyik.medium.com/c-ile-nesne-y%C3%B6nelimli-programlama-this-i%C5%9Faret%C3%A7isi-d601c89660d3?source=rss-2a407be6aab7------2</link>
            <guid isPermaLink="false">https://medium.com/p/d601c89660d3</guid>
            <category><![CDATA[cpp]]></category>
            <category><![CDATA[çeviri]]></category>
            <category><![CDATA[nesne-yönelimli]]></category>
            <category><![CDATA[programlama]]></category>
            <dc:creator><![CDATA[Aslihan Akbiyik]]></dc:creator>
            <pubDate>Mon, 09 Nov 2020 18:16:14 GMT</pubDate>
            <atom:updated>2020-11-09T18:16:14.751Z</atom:updated>
            <content:encoded><![CDATA[<p>Bu yazılar <a href="https://www.tutorialspoint.com/cplusplus/cpp_classes_objects.htm">https://www.tutorialspoint.com/cplusplus/</a> adresindeki yazı dizilerinin çevirileridir.</p><p>C++ dilinde tüm nesnelerin kendi adreslerine erişim veren <strong>this(bu) </strong>adlı işaretçisi vardır. <strong>This </strong>işaretçisi tüm üye fonksiyonlarında dahili bir parametredir. Bu nedenle, üye fonksiyonlarında bir nesneye başvurmak için kullanılabilir.</p><p>Arkadaş fonksiyonlarının <strong>this</strong> işaretçisi yoktur, çünkü arkadaş fonksiyonlar sınıf üyesi değildir. Sadece üye fonksiyonlarının <strong>this</strong> işaretçisi vardır.</p><p>Takip eden örnekle this işaretçisinin konseptini anlamaya çalışalım -</p><blockquote><a href="http://tpcg.io/y4Ar2U">Live Demo</a></blockquote><blockquote>#include &lt;iostream&gt;</blockquote><blockquote>using namespace std;</blockquote><blockquote>class Kutu {</blockquote><blockquote>public:</blockquote><blockquote>// Yapıcı tanımı</blockquote><blockquote>Kutu(double u = 2.0, double g = 2.0, double y = 2.0) {</blockquote><blockquote>cout &lt;&lt;“Yapici cagrildi.” &lt;&lt; endl;</blockquote><blockquote>uzunluk = u;</blockquote><blockquote>genislik = g;</blockquote><blockquote>yukseklik = y;</blockquote><blockquote>}</blockquote><blockquote>double Hacim() {</blockquote><blockquote>return uzunluk * genislik * yukseklik;</blockquote><blockquote>}</blockquote><blockquote>int karsilastir(Kutu kutu) {</blockquote><blockquote>return this-&gt;Hacim() &gt; kutu.Hacim();</blockquote><blockquote>}</blockquote><blockquote>private:</blockquote><blockquote>double uzunluk; // Kutunun uzunlugu</blockquote><blockquote>double genislik; // Kutunun genişliği</blockquote><blockquote>double yukseklik; // Kutunun yüksekliği</blockquote><blockquote>};</blockquote><blockquote>int main(void) {</blockquote><blockquote>Kutu Kutu1(3.3, 1.2, 1.5); // Kutu1 tanımı</blockquote><blockquote>Kutu Kutu2(8.5, 6.0, 2.0); // Kutu2 tanımı</blockquote><blockquote>if(Kutu1.karsilastir(Kutu2)) {</blockquote><blockquote>cout &lt;&lt; “Kutu2 Kutu1 den kucuktur” &lt;&lt;endl;</blockquote><blockquote>} else {</blockquote><blockquote>cout &lt;&lt; “Kutu2 Kutu1 den buyuktur ya da ona esittir“ &lt;&lt;endl;</blockquote><blockquote>}</blockquote><blockquote>return 0;</blockquote><blockquote>}</blockquote><p>Kod derlenip çalıştırıldığında -</p><blockquote>Yapici cagrildi.</blockquote><blockquote>Yapici cagrildi.</blockquote><blockquote>Kutu2 Kutu1 den buyuktur ya da ona esittir</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d601c89660d3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>