<?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: Aliza Kanwal</title>
    <description>The latest articles on DEV Community by Aliza Kanwal (@aliza_kanwal).</description>
    <link>https://dev.to/aliza_kanwal</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4240300%2Fbef8ef0c-f084-4f71-973f-cd6f6a86d7e7.png</url>
      <title>DEV Community: Aliza Kanwal</title>
      <link>https://dev.to/aliza_kanwal</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aliza_kanwal"/>
    <language>en</language>
    <item>
      <title>Abstraction in C++ - Explained in Simple Words</title>
      <dc:creator>Aliza Kanwal</dc:creator>
      <pubDate>Thu, 12 Nov 2026 14:36:24 +0000</pubDate>
      <link>https://dev.to/aliza_kanwal/abstraction-in-c-explained-in-simple-words-1fo9</link>
      <guid>https://dev.to/aliza_kanwal/abstraction-in-c-explained-in-simple-words-1fo9</guid>
      <description>&lt;p&gt;Abstraction means showing only the important things and hiding the complex details.&lt;/p&gt;

&lt;p&gt;Think of a car. When you drive a car, you only see steering, brake, and accelerator. You don't see how the engine works inside. You don't need to know it. You just drive. This is Abstraction!&lt;/p&gt;

&lt;p&gt;In C++, we use Abstraction to make our code simple to use.&lt;/p&gt;

&lt;p&gt;Let's see a simple example:&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
cpp
#include &amp;lt;iostream&amp;gt;
using namespace std;

class Car {
public:
    void start() {
        cout &amp;lt;&amp;lt; "Car Started!" &amp;lt;&amp;lt; endl;
        startEngine();
    }

private:
    void startEngine() {
        cout &amp;lt;&amp;lt; "Engine is working inside..." &amp;lt;&amp;lt; endl;
    }
};

int main() {
    Car myCar;
    myCar.start();
    return 0;
}
Output:
Car Started!
Engine is working inside...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>cpp</category>
      <category>oop</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
    <item>
      <title>Encapsulation in C++ - Explained in Simple Words</title>
      <dc:creator>Aliza Kanwal</dc:creator>
      <pubDate>Thu, 12 Nov 2026 14:33:55 +0000</pubDate>
      <link>https://dev.to/aliza_kanwal/encapsulation-in-c-explained-in-simple-words-51mj</link>
      <guid>https://dev.to/aliza_kanwal/encapsulation-in-c-explained-in-simple-words-51mj</guid>
      <description>&lt;p&gt;Encapsulation means hiding your data to keep it safe. In C++, we make data private and we only allow access through public functions.&lt;/p&gt;

&lt;p&gt;Think of it like a bank locker. Your money is inside the locker (private). You cannot touch it directly. You have to use a key (public function) to open it. This keeps your money safe.&lt;/p&gt;

&lt;p&gt;Let's see a simple example:&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
cpp
#include &amp;lt;iostream&amp;gt;
using namespace std;

class BankAccount {
private:
    int balance = 1000;

public:
    void showBalance() {
        cout &amp;lt;&amp;lt; "Your balance is: " &amp;lt;&amp;lt; balance &amp;lt;&amp;lt; endl;
    }

    void deposit(int amount) {
        balance = balance + amount;
        cout &amp;lt;&amp;lt; "Deposited: " &amp;lt;&amp;lt; amount &amp;lt;&amp;lt; endl;
    }
};

int main() {
    BankAccount myAccount;
    myAccount.showBalance();
    myAccount.deposit(500);
    myAccount.showBalance();
    return 0;
}
Your balance is: 1000
Deposited: 500
Your balance is: 1500
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>cpp</category>
      <category>oop</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
    <item>
      <title>Polymorphism in C++ - Explained in Simple Words</title>
      <dc:creator>Aliza Kanwal</dc:creator>
      <pubDate>Thu, 12 Nov 2026 14:30:45 +0000</pubDate>
      <link>https://dev.to/aliza_kanwal/polymorphism-in-c-explained-in-simple-words-gc4</link>
      <guid>https://dev.to/aliza_kanwal/polymorphism-in-c-explained-in-simple-words-gc4</guid>
      <description>&lt;p&gt;Polymorphism means "many forms". In C++, it means one function name can work in many different ways.&lt;/p&gt;

&lt;p&gt;Think of it like this: Every animal makes a sound, but the sound is different.&lt;br&gt;
Cat says Meow, Dog says Bark, Bird says Chirp. The function name is same - makeSound() - but the result is different. This is Polymorphism!&lt;/p&gt;

&lt;p&gt;Let's see a simple example:&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
cpp
#include &amp;lt;iostream&amp;gt;
using namespace std;

class Animal {
public:
    virtual void makeSound() {
        cout &amp;lt;&amp;lt; "Animal makes a sound" &amp;lt;&amp;lt; endl;
    }
};

class Cat : public Animal {
public:
    void makeSound() override {
        cout &amp;lt;&amp;lt; "Meow!" &amp;lt;&amp;lt; endl;
    }
};

class Dog : public Animal {
public:
    void makeSound() override {
        cout &amp;lt;&amp;lt; "Bark!" &amp;lt;&amp;lt; endl;
    }
};

int main() {
    Animal* a1 = new Cat();
    Animal* a2 = new Dog();

    a1-&amp;gt;makeSound();
    a2-&amp;gt;makeSound();
    return 0;
}
Output:
Meow!
Bark!
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>cpp</category>
      <category>oop</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
    <item>
      <title>What is Inheritance in OOP? Explained in Simple Words</title>
      <dc:creator>Aliza Kanwal</dc:creator>
      <pubDate>Thu, 12 Nov 2026 14:23:00 +0000</pubDate>
      <link>https://dev.to/aliza_kanwal/what-is-inheritance-in-oop-explained-in-simple-words-11g5</link>
      <guid>https://dev.to/aliza_kanwal/what-is-inheritance-in-oop-explained-in-simple-words-11g5</guid>
      <description>&lt;p&gt;Inheritance means ek Class ko doosri Class ki cheezain mil jati hain.&lt;/p&gt;

&lt;p&gt;Jaise bachay ko apne Maa Baap se cheezain milti hain, waise hi Child Class ko Parent Class se properties milti hain.&lt;/p&gt;

&lt;p&gt;Example: Person ek Parent Class hai. Student ek Child Class hai. Student ko Person ki har cheez milegi, plus uski apni bhi hogi.&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
cpp
#include&amp;lt;iostream&amp;gt;
using namespace std;

// Parent Class
class Person {
public:
    string name;
    int age;

    void introduce() {
        cout &amp;lt;&amp;lt; "My name is " &amp;lt;&amp;lt; name &amp;lt;&amp;lt; endl;
        cout &amp;lt;&amp;lt; "My age is " &amp;lt;&amp;lt; age &amp;lt;&amp;lt; endl;
    }
};

// Child Class - Person se Inheritance le rahi hai
class Student : public Person {
public:
    int rollNo;

    void showRollNo() {
        cout &amp;lt;&amp;lt; "My Roll No is " &amp;lt;&amp;lt; rollNo &amp;lt;&amp;lt; endl;
    }
};

int main() {
    Student s1;
    s1.name = "Aliza";
    s1.age = 20;
    s1.rollNo = 1;

    s1.introduce();
    s1.showRollNo();

    return 0;
}
Output:
My name is Aliza
My age is 20
My Roll No is 1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>oop</category>
      <category>cpp</category>
      <category>beginners</category>
      <category>inheritance</category>
    </item>
    <item>
      <title>What is Class and Object in OOP? Explained in Simple Words</title>
      <dc:creator>Aliza Kanwal</dc:creator>
      <pubDate>Thu, 12 Nov 2026 14:08:54 +0000</pubDate>
      <link>https://dev.to/aliza_kanwal/what-is-class-and-object-in-oop-explained-in-simple-words-3n5n</link>
      <guid>https://dev.to/aliza_kanwal/what-is-class-and-object-in-oop-explained-in-simple-words-3n5n</guid>
      <description>&lt;p&gt;Class is a blueprint. Object is a real thing made from that blueprint.&lt;/p&gt;

&lt;p&gt;Example: Agar Class "Car ka Naksha" hai, to Object us nakshay se bani hui asli Car hai.&lt;/p&gt;

&lt;p&gt;Ek Class se hum jitne marzi Objects bana sakte hain, jaise neeche code me s1 aur s2 banaye hain.&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
cpp
#include &amp;lt;iostream&amp;gt;
using namespace std;

class Student {
public:
    string name;
    int rollNo;

    void introduce() {
        cout &amp;lt;&amp;lt; "My name is " &amp;lt;&amp;lt; name &amp;lt;&amp;lt; endl;
        cout &amp;lt;&amp;lt; "My Roll No is " &amp;lt;&amp;lt; rollNo &amp;lt;&amp;lt; endl;
    }
};

int main() {
    Student s1;
    s1.name = "Aliza";
    s1.rollNo = 1;
    s1.introduce();

    Student s2;
    s2.name = "Ayesha";
    s2.rollNo = 2;
    s2.introduce();

    return 0;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>oop</category>
      <category>cpp</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
