<?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 netcup hosting blog</title>
    <link>https://en.netcup.nllk.net/blog/tags/oop/</link>
    <description>Recent content in oop on netcup hosting blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Sat, 29 Aug 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://en.netcup.nllk.net/blog/tags/oop/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>The difference between __str__ and __repr__ in Python</title>
      <link>https://en.netcup.nllk.net/blog/post/0057-python-str-vs-repr/</link>
      <pubDate>Sat, 29 Aug 2026 00:00:00 +0000</pubDate>
      
      <guid>https://en.netcup.nllk.net/blog/post/0057-python-str-vs-repr/</guid>
      
        <description>This article explains the difference between __str__ and __repr__ in Python, which one containers use, and why you should define __repr__ first.</description>
      
    </item>
    
    <item>
      <title>The difference between @staticmethod and @classmethod in Python</title>
      <link>https://en.netcup.nllk.net/blog/post/0050-python-staticmethod-classmethod/</link>
      <pubDate>Sat, 29 Aug 2026 00:00:00 +0000</pubDate>
      
      <guid>https://en.netcup.nllk.net/blog/post/0050-python-staticmethod-classmethod/</guid>
      
        <description>This article explains the difference between @staticmethod and @classmethod in Python, and why alternative constructors have to be classmethods.</description>
      
    </item>
    
    <item>
      <title>What metaclasses are in Python</title>
      <link>https://en.netcup.nllk.net/blog/post/0041-python-metaclasses/</link>
      <pubDate>Sat, 29 Aug 2026 00:00:00 +0000</pubDate>
      
      <guid>https://en.netcup.nllk.net/blog/post/0041-python-metaclasses/</guid>
      
        <description>This article explains what a metaclass is in Python, when its hooks run, and why __init_subclass__ is usually the better answer.</description>
      
    </item>
    
    <item>
      <title>PHP: How do you convert an object into an array?</title>
      <link>https://en.netcup.nllk.net/blog/post/0023-php-convert-object-to-array/</link>
      <pubDate>Fri, 28 Aug 2026 00:00:00 +0000</pubDate>
      
      <guid>https://en.netcup.nllk.net/blog/post/0023-php-convert-object-to-array/</guid>
      
        <description>This article answers the question of how to convert an object into an associative array in PHP and which traps are waiting for you.</description>
      
    </item>
    
    <item>
      <title>PHP: How do you use enums?</title>
      <link>https://en.netcup.nllk.net/blog/post/0017-php-how-to-use-enums/</link>
      <pubDate>Fri, 28 Aug 2026 00:00:00 +0000</pubDate>
      
      <guid>https://en.netcup.nllk.net/blog/post/0017-php-how-to-use-enums/</guid>
      
        <description>This article answers the question of how to model enumerations in PHP with enum, and what you gain over class constants.</description>
      
    </item>
    
    <item>
      <title>PHP: What is stdClass?</title>
      <link>https://en.netcup.nllk.net/blog/post/0035-php-what-is-stdclass/</link>
      <pubDate>Fri, 28 Aug 2026 00:00:00 +0000</pubDate>
      
      <guid>https://en.netcup.nllk.net/blog/post/0035-php-what-is-stdclass/</guid>
      
        <description>This article answers the question of what stdClass is in PHP, where you get it from and why it is not the base class of all objects.</description>
      
    </item>
    
    <item>
      <title>PHP: What is the difference between public, private and protected?</title>
      <link>https://en.netcup.nllk.net/blog/post/0034-php-public-private-protected/</link>
      <pubDate>Fri, 28 Aug 2026 00:00:00 +0000</pubDate>
      
      <guid>https://en.netcup.nllk.net/blog/post/0034-php-public-private-protected/</guid>
      
        <description>This article answers the question of what public, private and protected mean in PHP and why private is not as private as you might think.</description>
      
    </item>
    
    <item>
      <title>PHP: When do you use self and when $this?</title>
      <link>https://en.netcup.nllk.net/blog/post/0014-php-self-vs-this/</link>
      <pubDate>Fri, 28 Aug 2026 00:00:00 +0000</pubDate>
      
      <guid>https://en.netcup.nllk.net/blog/post/0014-php-self-vs-this/</guid>
      
        <description>This article answers the question of when to use self:: in PHP, when to use $this-&gt;, and why there is also static::.</description>
      
    </item>
    
  </channel>
</rss>
