<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Beran Santur</title>
    <description>The latest articles on DEV Community by Beran Santur (@beransantur).</description>
    <link>https://dev.to/beransantur</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F588982%2F1c224480-c52f-4c0f-a052-df3ea4f866e8.jpeg</url>
      <title>DEV Community: Beran Santur</title>
      <link>https://dev.to/beransantur</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/beransantur"/>
    <language>en</language>
    <item>
      <title>What are Classes and Objects What is their difference?</title>
      <dc:creator>Beran Santur</dc:creator>
      <pubDate>Tue, 02 Mar 2021 09:51:27 +0000</pubDate>
      <link>https://dev.to/beransantur/what-are-classes-and-objects-what-is-their-difference-4042</link>
      <guid>https://dev.to/beransantur/what-are-classes-and-objects-what-is-their-difference-4042</guid>
      <description>&lt;p&gt;&lt;strong&gt;Class&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Classes are just blueprints. That's all.&lt;/p&gt;

&lt;p&gt;They are a data type -user defined- just like String.&lt;/p&gt;

&lt;p&gt;They have attributes (data) and they have methods (functions) &lt;/p&gt;

&lt;p&gt;They can hide data and methods which are only used internally in class.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Objects&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If classes are blueprints, objects are the buildings that made from those blueprints.&lt;/p&gt;

&lt;p&gt;They carry all the data and methods class has. So they are created from classes and they represent them.&lt;/p&gt;

&lt;p&gt;They all can have a different identity for example Car is a class but Audi is an object.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Class:&lt;/strong&gt; Fruit &lt;strong&gt;Object:&lt;/strong&gt; Apple, Banana, Mango, Guava etc..&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Difference between Objects and Classes&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Classes are just defination of objects they are just templates or blueprints of objects whereas objects are instances of classes.&lt;/p&gt;

&lt;p&gt;Classes is declared once but objects can be created multiple times.&lt;/p&gt;

&lt;p&gt;Class is a logical entites but objects are physical entities.&lt;/p&gt;

&lt;p&gt;Objects allocates memory when its created, on the contrary classes don't allocate memory when its created(memory is taken up for class definitions isn't on the stack nor heap. When you create an object of a class it will always go on either the stack or heap. Class declaration tells the compiler and runtime how much memory to allocate for each class instance, but only when requested.).&lt;/p&gt;

</description>
    </item>
    <item>
      <title>What is Object Oriented Programming?</title>
      <dc:creator>Beran Santur</dc:creator>
      <pubDate>Tue, 02 Mar 2021 09:31:40 +0000</pubDate>
      <link>https://dev.to/beransantur/what-is-object-oriented-programming-43nk</link>
      <guid>https://dev.to/beransantur/what-is-object-oriented-programming-43nk</guid>
      <description>&lt;p&gt;Object Oriented Programming is a basically abstraction method. It give us more modularized data.&lt;/p&gt;

&lt;p&gt;For instance if we need to know whether a student registered a lesson, we could use procedural programming and we would create another function to check it. And I would perfectly work well but the thing is if somehow this logic changes it might affect the whole program provided we used that registering information in somewhere.&lt;/p&gt;

&lt;p&gt;On the other hand if we used oop instead of procedural programming, we just had to create another function in the class. And we would achieve it with a precise change.&lt;/p&gt;

&lt;p&gt;It gives us more reuseability, easy to maintain, easy to fix, easy to debug and easy to test.&lt;/p&gt;

&lt;p&gt;Limitations&lt;/p&gt;

&lt;p&gt;In little applications that won’t exist for long it is probably a better idea to use procedural programming since it oop makes program more larger in size and -since there is a lot in behind the scenes -, slower. But this is not particularly the case for C++ since it’s most efficient oop language out there.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
