#include <bits/stdc++.h>
using namespace std;

class Device
{
protected:
    string name;

public:
    virtual void showStatus() = 0; // Pure Virtual Function
};

class Laptop : public Device
{
private:
    string brand;

public:
    Laptop(string b)
    {
        brand = b;
    }

    void showStatus()
    {
        cout << "Laptop " << brand << " is ON" << endl;
    }
};

class Mobile : public Device
{
private:
    string model;

public:
    Mobile(string m)
    {
        model = m;
    }

    void showStatus()
    {
        cout << "Mobile " << model << "is Running" << endl;
    }
};

class Tablet : public Device
{
private:
    string osType;

public:
    Tablet(string os)
    {
        osType = os;
    }

    void showStatus()
    {
        cout << "Tablet " << osType << "is Active" << endl;
    }
};

int main()
{
    Device *d;

    Laptop l("Dell");
    Mobile m("Samsung");
    Tablet t("Android");

    d = &l;
    d->showStatus();

    d = &m;
    d->showStatus();

    d = &t;
    d->showStatus();

    return 0;
}