#12 Static data member in c++ in hindi tutorial | explain what is static member function variable

Поделиться
HTML-код
  • Опубликовано: 20 дек 2024

Комментарии • 102

  • @muhammadalamgir4706
    @muhammadalamgir4706 6 лет назад +5

    Sir plz mazeed or videos b bnain c++ oop ki,, ap ki baat thory sy time ma hi, achy sy smj aa jati hy. Thank u so much

  • @babarriaz1763
    @babarriaz1763 6 лет назад +1

    Aoa Brother
    Apki videos kafi informative or easily understandable hain please videos bnaty raha krenn..apka method bht acha hai ..programing ki mzeed full videos bnayn polymorphism wgaira smjha den...
    ALLAH apko mzeed kmyabiya atta frmayn.AMEEN

  • @hamzanadeem8469
    @hamzanadeem8469 Год назад +2

    Asslam-u-alikum! sir I really like your teaching method. You first give the theoretical concepts and then provide visual aid that covers all concepts and if any type of confusion will be remained you cover it by doing it practically on (DEV C++). "GOD BLESS YOU SIR" keep it up Allha ap ko hamasaha kamyabiya ata farmia (Ameen).
    #include
    using namespace std;
    /* run this program using the console pauser or add your own getch, system("pause") or input loop */
    class Emploies{
    private:
    static int id;
    public:
    Emploies(){
    id++;
    }
    void show_data();
    };
    int Emploies::id=0;
    void Emploies::show_data(){
    cout

  • @SaniaSaid-wx2nn
    @SaniaSaid-wx2nn Год назад

    The way you teaching the Best

  • @zahid_9217
    @zahid_9217 6 лет назад +2

    sir i am very thankful for uh
    may allah bless uh
    aapnie mare promming easy ki hai
    love uh sir

  • @IKLogics
    @IKLogics 7 лет назад +4

    BHAI REALLY LIKE YOUR VIDEOS. KINDLY MAKE MORE LECTURES RELATED TO OOP & DATA SRUCTURES.

  • @Saith_Azeem923
    @Saith_Azeem923 4 месяца назад

    Good bro
    Watching 1 day before practical exam in university

  • @FforFantasies
    @FforFantasies 6 лет назад +2

    Sir can u upload some more lectures?
    Really good method....

  • @laptopinsights
    @laptopinsights 3 года назад +1

    Thanks for your helpful videos

  • @cartoontv-p3v
    @cartoontv-p3v 2 года назад

    Sir u are great 👍👍👍...Thanks u very much for every lecture

  • @muhammadshahzaib6033
    @muhammadshahzaib6033 5 лет назад +1

    Aoa sir, sir ap ny friend function ke video nahe banaie ha plz wo bana dyn

  • @mrameer15
    @mrameer15 6 лет назад +7

    KINDLY MAKE MORE LECTURES RELATED TO OOP

  • @mehtabsajid5429
    @mehtabsajid5429 7 лет назад

    Very nice video and i understand everything and very helpfull video

  • @saadshakil9074
    @saadshakil9074 5 лет назад

    sir i have done your assignment.you are great sir

  • @naeemzaib2716
    @naeemzaib2716 5 лет назад

    thnx for all c++ videos ..

  • @muhammadmujtaba5285
    @muhammadmujtaba5285 5 лет назад

    sir ap ky aur lectures nai han inheritance nai ha polymorphisim nai ha kya ap upload karen gy ya nai ?????????????

  • @merab_asher
    @merab_asher 4 года назад

    Sir your videos are really good ۔ makes it easy to understand OOP ⁦👍🏼⁩

  • @maltamas
    @maltamas 7 лет назад

    good
    bhut axcha
    sukriya bhaijaan

  • @hope_of_light
    @hope_of_light 3 года назад

    big fan sir thank you soo much

  • @fazalkhan4808
    @fazalkhan4808 5 лет назад

    Sir Kab upload karogy next lectures and task....??

  • @raza-abbas37
    @raza-abbas37 6 лет назад

    sir g constructor creat hoty waqat static variable ki value change ni hote ha? ye program hum int n sa kr sakty ha k ni?

  • @SaniaSaid-wx2nn
    @SaniaSaid-wx2nn Год назад

    Really appreciated you sir

  • @muhammadhamzaatif306
    @muhammadhamzaatif306 3 года назад +1

    I done this assignment with two methods shown below
    First Method
    /*
    * Assignment Program
    * W.A.P that creates four objects of class Employee
    * Each object of class must be assigned unique id
    */
    # include
    using namespace std;
    class Employee
    {
    public:
    string first_name;
    string second_name;
    string qualification;
    int emp_id1;
    int emp_id2;
    int emp_id3;
    int emp_id4;
    Employee()
    {
    emp_id1 = 25;
    emp_id2 = 15;
    emp_id3 = 10;
    emp_id4 = 38;
    }
    void show1();
    void show2();
    void show3();
    void show4();
    };
    void Employee::show1()
    {
    cout

    • @sabtainsajjad3507
      @sabtainsajjad3507 Год назад +1

      isnt this better:
      #include
      using namespace std;
      class employee
      {
      static int id;
      public:
      void display()
      {
      cout

    • @logicscomputing
      @logicscomputing Год назад +1

      @@sabtainsajjad3507 this is easy method but the output will not correct .
      we have to create objects after displaying 1st object data as:
      /*..........static data member assignment program.........
      W.A.P that creates 4 objects of class employee.
      each object of class must be assigned to a unique id. */
      #include
      using namespace std;
      class employee
      {
      static int id;
      public:
      employee()
      {
      id++;
      }
      void display()
      {
      cout

  • @tiortynofficial1938
    @tiortynofficial1938 4 года назад

    Program ka flow smaj nhi aya jab hum ny static data member class k bottom main initialize kerwaya to pogram ko garbage value show kerwani chahi ye.? How it is runing correctly?

  • @ZainullahKhan-f6c
    @ZainullahKhan-f6c Год назад

    Nice lecture sir g ❤

  • @divyapandey4928
    @divyapandey4928 Год назад

    Sir please make video on stream and arithmetic,relational,subscript operator

  • @irambano6511
    @irambano6511 6 лет назад

    sir g plz or lectures bna dy.....next week papers hai....plz

  • @murtazabaig4280
    @murtazabaig4280 2 года назад

    sir ap ka program ka logic sahi nahi hora ha ..c1 ko display krka dakh la ..wrong da raha ha output

  • @tayyabakousar6942
    @tayyabakousar6942 6 лет назад +1

    Thanks a lot sir...!!!!!!

  • @differenrdeveloper5809
    @differenrdeveloper5809 6 лет назад

    *THANX BHAIJAAN* 😙👌

  • @mrameer15
    @mrameer15 6 лет назад +1

    static data member proper samajh nahi aya kindly is py 1 video or bna dain.

  • @MuslimMind-786-y2h
    @MuslimMind-786-y2h 6 лет назад +2

    kia kar rahy hain sir sry lectures half??,,,baqi???? ????????

  • @attiabatool-cg5wu
    @attiabatool-cg5wu Месяц назад

    sir how we check memory allocation

  • @NoorFatima-rk5bk
    @NoorFatima-rk5bk 5 лет назад

    hi,.. can you please gimme the solution of the question that u gave at the end of the video?

  • @abdusslam260
    @abdusslam260 6 лет назад

    Bahi or lecture nahi banay kya apnay or yeah last wali assignment ki samaj nahi i

  • @mrsaqibhakak
    @mrsaqibhakak 7 лет назад +1

    keep it up bro.. need more

  • @kazim143
    @kazim143 7 лет назад +2

    Bhai or lectures nhi ha?

    • @muhammadalamgir4706
      @muhammadalamgir4706 6 лет назад

      @@MalikShahzaibOfficial g pasand ki es ma koi baat ni g,, sb achy sy smj aa raha hy,, wo actually languages hr ksi ko smj b to ni ati naaaa,

    • @syedshamsherali1709
      @syedshamsherali1709 5 лет назад

      @@MalikShahzaibOfficial Malak Shb AP Lectures Bnao Please

    • @fazalkhan4808
      @fazalkhan4808 5 лет назад

      @@syedshamsherali1709 Wow Yarr Tum sii achaa teacher manii abhii tk dekha hi nhi hain... bhaii please Total oop pi lecture bnaoo.
      And conceptual task bhiii dedo sir

    • @MrAli-zh8ed
      @MrAli-zh8ed 5 лет назад

      @@MalikShahzaibOfficial bro apko idea nai by k ap k lec kitny zbrdasrt hain . mujy oop smaj nai ati lakin ab tension khatam jb sy apki playlist Dekhi. Bus yahan students ki traffic nahi iska ye mtlab nai k led psand nai aty . best lectures hain. Thanks a lot

  • @MuhammadAfzal-pl2sp
    @MuhammadAfzal-pl2sp 4 года назад +1

    Well said 😊

  • @nazirahmad1254
    @nazirahmad1254 2 года назад

    Thank you ❤

  • @HelpingHands786
    @HelpingHands786 6 лет назад

    sir aur lectures bh upload kren oop se related

  • @ruchisharma7842
    @ruchisharma7842 5 лет назад

    Sir plz upload next video series of c++

  • @Saifabbasi_111
    @Saifabbasi_111 4 месяца назад

    Bhai static variable to class say bahir declare jota

  • @mariabatool140
    @mariabatool140 4 года назад

    👍😊
    Keep it up....

  • @KhanKhan-wf2zm
    @KhanKhan-wf2zm Год назад

    assignment
    #include
    using namespace std;
    class employee
    {
    static int newid;
    int id;
    public:

    employee()
    {
    newid++;
    id=newid*5;
    }
    void show()
    {
    cout

  • @mdwaquarazam2026
    @mdwaquarazam2026 4 года назад

    Very nice video

  • @innocentdoll5578
    @innocentdoll5578 7 лет назад

    bhai next lecture???????????
    please upload new lectures

  • @abdullahch1257
    @abdullahch1257 6 лет назад

    bahi agar mujy ap say koi help chaiye ho too ap kya meri help karo gay main ap say help kesay lay sakata hoon mujyn kuch oop k related app say poochna ho too ap batatain gay mujy
    or kya mujy apni facebook id bata saktay hain

  • @navneetkaur6961
    @navneetkaur6961 6 лет назад

    please add polymorphism topic

  • @talhasajawal3194
    @talhasajawal3194 Год назад

    #include
    using namespace std;
    class employee{
    static int n;
    public:
    employee()
    {
    n++;

    }
    void display()
    {
    cout

  • @masumali6033
    @masumali6033 5 лет назад +4

    #include
    using namespace std;
    class employee
    {
    static int id;
    public:
    employee()
    {
    id++;
    }
    void display()
    {
    cout

  • @muhammadmobinkhan
    @muhammadmobinkhan 2 года назад

    Yar start may normal ho k bat Kiya karo .aysa lagta ha jaysa koi cheez gos gaya ho

  • @ishhstar-q4w
    @ishhstar-q4w 11 месяцев назад

    great

  • @technicalganga2404
    @technicalganga2404 4 года назад +2

    assignment is #include
    using namespace std;
    class counter
    {
    static int n;
    public:
    counter()
    {
    n++;
    }
    void display()
    {
    cout

  • @ayaangorayagoraya5251
    @ayaangorayagoraya5251 Год назад

    Ab vedio nahi ati sir g

  • @DarkWorld0000
    @DarkWorld0000 4 года назад

    👏👏👏👏

  • @sehrishramzan6000
    @sehrishramzan6000 6 лет назад

    nice method

  • @technicalganga2404
    @technicalganga2404 4 года назад +2

    #include
    using namespace std;
    class counter
    {
    static int n;
    public:
    counter()
    {
    n++;
    }
    void display()
    {
    cout

  • @arslannaveed5676
    @arslannaveed5676 9 месяцев назад

    here again after 3 years

  • @farzanaramzan9419
    @farzanaramzan9419 3 года назад

    Walaikum Assalam

  • @haseebarshad378
    @haseebarshad378 5 лет назад

    #include
    using namespace std;
    class employee{
    static int uid;
    public:
    void show()
    {
    cout

  • @abdusslam260
    @abdusslam260 6 лет назад

    Unique id mean

  • @Priya-hr5si
    @Priya-hr5si 3 года назад

    So cute voice

  • @muhammadshahrooz839
    @muhammadshahrooz839 3 года назад +3

    #include
    using namespace std;
    class employee
    {
    static int e;
    public:
    employee()
    {
    e++;
    }
    void show()
    {
    cout

  • @BeastFanMade
    @BeastFanMade 3 года назад +1

    QUESTION :--
    #include
    #include
    using namespace std;
    class employee {
    static int n;
    public:
    employee()
    {
    n = n + 2;
    }
    void dis() {
    cout

  • @muhammadjafar6174
    @muhammadjafar6174 3 года назад +1

    class employee
    {
    static int e_id;
    public:
    employee()
    {
    cout

  • @AmanJain-vw9zb
    @AmanJain-vw9zb 4 года назад

    Thik se pda be

  • @explorebyperdasi
    @explorebyperdasi 7 лет назад

    pakistani akcent :P

  • @abdulqudduskhan8677
    @abdulqudduskhan8677 3 года назад

    #include
    using namespace std;
    class employee
    {
    public:
    static int id;
    public:
    employee()
    {
    id++;
    }
    void show()
    {
    cout

  • @QuranAndQuotes
    @QuranAndQuotes 6 месяцев назад

    #include
    using namespace std;
    class employee
    {

    static int u;
    public:
    employee()
    {
    u++;
    }
    void display()
    {
    cout

  • @Creativity-by-HS
    @Creativity-by-HS 9 месяцев назад +1

    #include
    using namespace std;
    class employee
    {
    private:
    static char id;
    char r;
    public:
    employee()
    {
    id++;
    r=id;
    }
    void show()
    {
    cout