<?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: Urooz Fatima</title>
    <description>The latest articles on DEV Community by Urooz Fatima (@uroozulous).</description>
    <link>https://dev.to/uroozulous</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%2F3495603%2F71cd200d-2ee1-4727-821e-b49de5240df1.png</url>
      <title>DEV Community: Urooz Fatima</title>
      <link>https://dev.to/uroozulous</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/uroozulous"/>
    <language>en</language>
    <item>
      <title>Anagram Checker Using HashMap</title>
      <dc:creator>Urooz Fatima</dc:creator>
      <pubDate>Wed, 04 Mar 2026 10:28:24 +0000</pubDate>
      <link>https://dev.to/uroozulous/anagram-checker-using-hashmap-4ibf</link>
      <guid>https://dev.to/uroozulous/anagram-checker-using-hashmap-4ibf</guid>
      <description>&lt;p&gt;Two strings are anagrams if they have the same length, contain the same characters, and each character appears the same number of times. The implementation uses a HashMap to count character frequencies efficiently.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Approach:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If the lengths of both strings are different, return false. Use a HashMap to store the frequency of characters from the first string. Traverse the second string: if a character is not found in the map, return false. Otherwise, decrease its frequency. If the frequency becomes zero, remove the character from the map. If the map is empty at the end, the strings are anagrams.&lt;/p&gt;

</description>
      <category>datastructures</category>
      <category>algorithms</category>
      <category>hashing</category>
      <category>hashmap</category>
    </item>
    <item>
      <title>ENCAPSULATION</title>
      <dc:creator>Urooz Fatima</dc:creator>
      <pubDate>Sun, 14 Sep 2025 15:23:40 +0000</pubDate>
      <link>https://dev.to/uroozulous/encapsulation-2bmn</link>
      <guid>https://dev.to/uroozulous/encapsulation-2bmn</guid>
      <description>&lt;p&gt;&lt;strong&gt;Encapsulation means binding data and functions together, and restricting direct access to the data.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Encapsulation = wrapping data (variables) + code (functions) together inside a class.&lt;br&gt;
The data is kept safe/hidden from outside and only accessible through specific functions (like getters and setters).&lt;br&gt;
This helps in security, control, and organization.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CODE&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#include&amp;lt;iostream&amp;gt;
using namespace std;
class Movieticket{
private:
    string moviename;
    int ticketprice;
    int seatsavailable;
public:
    void setdetail(){
        cout&amp;lt;&amp;lt;"Movie: ";
        cin&amp;gt;&amp;gt;moviename;
        cout&amp;lt;&amp;lt;"Ticket Price: ";
        cin&amp;gt;&amp;gt;ticketprice;
        cout&amp;lt;&amp;lt;"Avaialable seats: ";
        cin&amp;gt;&amp;gt;seatsavailable;
    }
   void Booking(int n){
        if(n&amp;lt;=seatsavailable){
            cout&amp;lt;&amp;lt;"Booking "&amp;lt;&amp;lt;n&amp;lt;&amp;lt;" tickets..."&amp;lt;&amp;lt;endl;
            seatsavailable-=n; 
            cout&amp;lt;&amp;lt;"Booking successful!❣️ &amp;lt;3"&amp;lt;&amp;lt;endl;
        }else{
            cout&amp;lt;&amp;lt;"Sorry,only " &amp;lt;&amp;lt;seatsavailable&amp;lt;&amp;lt;" seats available!"&amp;lt;&amp;lt;endl;
        }
    }
    void available(){
        cout&amp;lt;&amp;lt;"Available seats: "&amp;lt;&amp;lt;seatsavailable&amp;lt;&amp;lt;endl;
    }
};

int main(){
    Movieticket m;
    m.setdetail();
    int n;
    cout&amp;lt;&amp;lt;"How many tickets do you want to book?";
    cout&amp;lt;&amp;lt;endl;
    cin&amp;gt;&amp;gt;n;
    m.Booking(n);
    m.available();
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>programming</category>
      <category>oops</category>
      <category>encapsulation</category>
      <category>development</category>
    </item>
    <item>
      <title>OOPs</title>
      <dc:creator>Urooz Fatima</dc:creator>
      <pubDate>Thu, 11 Sep 2025 18:10:03 +0000</pubDate>
      <link>https://dev.to/uroozulous/oops-2o6o</link>
      <guid>https://dev.to/uroozulous/oops-2o6o</guid>
      <description>&lt;p&gt;OOP is a way to write programs by using objects, like things in real life.&lt;br&gt;
Object = Data + Actions&lt;br&gt;
It makes programs easy to understand and reuse.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Four important Ideas:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Encapsulation&lt;/strong&gt; – Keep data and actions together.&lt;br&gt;
&lt;strong&gt;Abstraction&lt;/strong&gt; – Show only important things, hide the rest.&lt;br&gt;
&lt;strong&gt;Inheritance&lt;/strong&gt; – New objects can use old object’s stuff.&lt;br&gt;
&lt;strong&gt;Polymorphism&lt;/strong&gt;– Objects can do the same action in different ways.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt; Car&lt;br&gt;
&lt;strong&gt;Data:&lt;/strong&gt; color, speed&lt;br&gt;
&lt;strong&gt;Actions:&lt;/strong&gt; start(), stop(), accelerate()&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Class and Object&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A class is like a blueprint or template for making objects.&lt;br&gt;
It tells what data the object will have and what actions/functions it can do.&lt;br&gt;
But by itself, a class is not a real object—it’s just the plan.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Class = Car (the blueprint)&lt;br&gt;
Object = myCar (a real car made from the blueprint)&lt;br&gt;
In short:&lt;br&gt;
Class = Plan&lt;br&gt;
Object = Thing made from that plan&lt;br&gt;
&lt;code&gt;class Classname{&lt;br&gt;
access specifier:&lt;br&gt;
     data member;&lt;br&gt;
     member function(){};&lt;br&gt;
};&lt;/code&gt;&lt;/p&gt;

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