Object as Function Argument | C++ Programming | In Hindi

Sdílet
Vložit
  • čas přidán 10. 09. 2024
  • Object as Function Argument | C++ Programming | In Hindi | Tutorial #43
    Hi All, Welcome all of you to the video series of C++ Programming. Like C, Java and Python, I will upload all the videos of C++ from Basic to Advanced.
    In this video, I have explained array of object. This simply means that in the same way you can create an array of integer, you can also create an array of object which will be referred to as Array of Object.
    ============================================================
    Use my code "codeitup" to get 10% discount
    Career as a Developer: unacademy.com/...
    Top Interview Questions: bit.ly/Unacade...
    ============================================================
    Link to Previous Video: • Array of Object | C++ ...
    Link to next video: • Friend Function in C++...
    =======================================================================
    CODEITUP PLAYLISTS
    1. C Programming Playlist: www.youtube.co....
    2. C++ Programming Playlist: www.youtube.co....
    3. Java Programming Playlist: www.youtube.co....
    4. Python Programming Playlist: www.youtube.co....
    5. CBSE Class 12 (CS) Python Playlist: www.youtube.co....
    6. CBSE Class 12 (IP) Playlist: www.youtube.co....
    7. CBSE Class 11 (CS) Playlist: www.youtube.co....
    8. CBSE Class 10 (IT): www.youtube.co....
    9. Networking Playlist: www.youtube.co....
    10. MySQL Playlist: www.youtube.co....
    11. Web Designing: www.youtube.co....
    12. NumPy Playlist: www.youtube.co....
    13. Computer Fundamental Playlist: www.youtube.co....
    14. ONE SHOT C Playlist: • C Programming | One Sh...
    =======================================================================
    Telegram Channel: t.me/codeitupl...
    Facebook Group: / 21673. .
    Instagram: t.me/codeitupyt
    Facebook Group: / 21673. .
    Facebook Page: / codeitup-104. .
    Website: codeitup.in
    Join this channel to get access to perks: www.youtube.co....
    =======================================================================
    Tags Used:
    codeitup
    codeitup c++
    c++ tutorial
    c++ tutorial in hindi
    reverse of a given number
    c++ tutorial for beginners
    class and object
    object as function argument
    class
    object
    concept of class and object
    programming using class & object
    how to write program using class and object
    writing program using class and object
    program exercise using class and object
    class and object programming
    questions with class and object
    odd even
    max min program
    using class & object
    codeitup c++
    c++ tutorial
    c++ tutorial in hindi
    c++ tutorial for beginners
    class and object
    class
    object
    writing basic loop programs using class & object
    concept of class and object
    programming using class & object
    how to write program using class and object
    writing program using class and object
    program exercise using class and object
    class and object programming
    questions with class and object
    odd even
    max min program
    using class & object
    #codeitup
    #c++
    #classandobject

Komentáře • 80

  • @jackengineergroup9453
    @jackengineergroup9453 Před 2 lety +17

    Hello sir, C++ ka course jald se jald complete kijiye, aapke sabhi video bahut achhe h ...

  • @shreyaverma2247
    @shreyaverma2247 Před 11 měsíci +6

    Sir can you please create a real life project based on C++ OOPs concept so that we can understand its implementation in real life.
    I really love your style of teaching and I would be really thankful if you create a project based on C++ OOPs concept

  • @babadailymotion3471
    @babadailymotion3471 Před rokem +6

    Anand tumhari videos dekh kr to Anand hi a jata ha hyyyyyyyyyyyyyyyy🥰🥰🥰🥰🥰🥰🥰

  • @user-rp9qn1ul2e
    @user-rp9qn1ul2e Před 6 měsíci +1

    Thank you so much Sir
    Bundle of prayers for you❤ ALLAH bless you

    • @codeitup
      @codeitup  Před 6 měsíci +1

      Thanks & most welcome dear!

  • @rajeshmgr
    @rajeshmgr Před 9 měsíci +2

    i always watch your video to understand after finishing my class.

  • @HarshGupta-lu5zg
    @HarshGupta-lu5zg Před 2 lety +5

    Sir please complete the c++ tutorial as soon as possible , sir I humble request to you please 🙏

  • @SiddharthGokharu-qq4vc
    @SiddharthGokharu-qq4vc Před 4 měsíci +1

    Very nice explanation

  • @skyblue3044
    @skyblue3044 Před rokem +4

    concept clarity 100%

  • @ranasarmadranasarmad6935
    @ranasarmadranasarmad6935 Před 9 měsíci +1

    Thank you so much sir😊

  • @rohitmahadik1878
    @rohitmahadik1878 Před rokem +4

    // above eg correct logic
    #include
    #include
    using namespace std ;
    class time1
    {
    int m,h ;
    public:
    void read()
    {
    couth;
    }
    void display ()
    {
    cout

  • @bcm15mdarifarshlan71
    @bcm15mdarifarshlan71 Před 2 lety +2

    Please upload more c++ videos

  • @mahvish2651
    @mahvish2651 Před rokem +1

    Bhaiya you are too good ☺🙂🤗
    And your explanation is super super good😎😄
    Thanks a lot .
    Well please tell aap kia karte hai?

  • @__Kuch_Bhi___
    @__Kuch_Bhi___ Před 10 měsíci

    👍 best teacher

  • @flexygaming4967
    @flexygaming4967 Před 2 lety +2

    Plz sir c++ video banavo

  • @abhaymaitra7032
    @abhaymaitra7032 Před rokem +1

    Awesome tutorial sir,

  • @radheyshyam8721
    @radheyshyam8721 Před 3 lety +5

    sir im class 11th student can i also join your classes ?(python)

  • @flexygaming4967
    @flexygaming4967 Před 2 lety +2

    Plz sir c++ complate fast karavo..

  • @incredible1056
    @incredible1056 Před rokem

    I love your way of teaching

  • @hindidoubbedmovies9235
    @hindidoubbedmovies9235 Před rokem +1

    thanks

  • @anandkumaryadav6467
    @anandkumaryadav6467 Před 10 měsíci

    nice teaching style

  • @MrKhan-uj4lj
    @MrKhan-uj4lj Před rokem +1

    Osm ❤

  • @jatinjain850
    @jatinjain850 Před rokem

    cout

  • @purnima7270
    @purnima7270 Před 2 lety +1

    Sir aage ki vdo jaldii dalo plzzzz

  • @agarg7731
    @agarg7731 Před rokem +1

    Sir ye logic muje galat lagta hai
    Agar user first minute input me 10 and next me 40 likh de too minute me 10 ayega lekin vha par 50 ana chahiye
    Please correct it if it is wrong

    • @ASHustlers
      @ASHustlers Před rokem

      no agar 10 or 40 likh kar inko pehly plus karo to 50 ae ga then 50%60 hoga and modulus right to left hota hai matlab 60 / 50 hoga jis ka remainder 50 hi ata hai q ky 60 bara hai woh aik bar bhi devide nhi ho sakta agar 50 ki jgha 70 hota hai to tab answer 10 ata hai

  • @_varun1313
    @_varun1313 Před rokem

    you are awesome sir
    ❤‍🔥

  • @suveshsharma8799
    @suveshsharma8799 Před 2 lety +1

    Sir jaldi aur videos upload kare na

  • @jackengineergroup9453
    @jackengineergroup9453 Před 2 lety +2

    Please sir, c++ ke sabhi video upload kijiye

  • @sunnyss7284
    @sunnyss7284 Před 2 lety +1

    Sir upload c++ more videos

  • @AdityaApugade
    @AdityaApugade Před 9 měsíci

    Perfect

  • @ketanbhaiparmar8261
    @ketanbhaiparmar8261 Před 2 lety +2

    Sir what is the difference between passing object as argument and passing obj as function argument

    • @jatinjain850
      @jatinjain850 Před rokem +3

      It seems there might be a slight misunderstanding in your question. However, I'll provide explanations for both possible interpretations:
      1. **Passing Object as an Argument:**
      When you pass an object as an argument to a function, you are essentially making a copy of that object and passing the copy to the function. This is known as passing by value. Any modifications made to the object inside the function will not affect the original object.

      class MyClass {
      // ... class members ...
      };
      void modifyObject(MyClass obj) {
      // Modify the copy of 'obj'
      }
      int main() {
      MyClass myObj;
      modifyObject(myObj); // Pass by value
      // 'myObj' remains unchanged
      return 0;
      }
      ```
      2. **Passing Object Reference (or Pointer) as a Function Argument:**
      When you pass an object reference (or a pointer) as a function argument, you are passing a way to access the original object's data. Any modifications made to the object inside the function will affect the original object.

      class MyClass {
      // ... class members ...
      };
      void modifyObject(MyClass& obj) {
      // Modify the original 'obj'
      }
      int main() {
      MyClass myObj;
      modifyObject(myObj); // Pass by reference
      // 'myObj' has been modified
      return 0;
      }
      ```
      In the second case, the function receives a direct reference to the original object, allowing it to modify the object's data. This is more efficient in terms of memory and processing time compared to passing by value.
      Additionally, if you're passing a pointer to an object, the function can modify the object using the pointer, similar to passing by reference.
      It's important to choose the appropriate method based on your needs. Passing by value creates a copy of the object, which is safe but less efficient for large objects. Passing by reference or pointer allows the function to directly modify the original object, which is more efficient but requires careful consideration to prevent unintended modifications.

  • @movieshub-y2q
    @movieshub-y2q Před rokem +1

    best explanation ever 🥰🥰🥰🥰

  • @noEmotions0
    @noEmotions0 Před 11 měsíci +1

    you have a cute smile

  • @rishavkumar3061
    @rishavkumar3061 Před 2 lety

    Thankyou sir

  • @sahilraj9886
    @sahilraj9886 Před 8 měsíci

    14:04

  • @alleygautam3793
    @alleygautam3793 Před 3 lety +2

    Sir
    Mene aapke channel se java or python pdii h
    Lekin code hone me problm aari h😭😭😭

  • @dundappafulari9208
    @dundappafulari9208 Před 2 lety +1

    👍👍👍🙏🙏🙏🎉🎉nice

  • @mr.cartoon673
    @mr.cartoon673 Před 2 lety

    Bohut accha

  • @Ayush-pt2eu
    @Ayush-pt2eu Před 2 lety

    Sir aage ke videos bhi upload Kardo sir maibtech kar raha hu mujhe jald se jald sikhna hai c++ sir agar aapke pas koi recorded lectures ho yaphir paid courses to batao hame i am ready to buy. Agarnhi hai to sir c++ ke video jaldi se jalde upload karo sir please sir it's urgent ur way of teaching is awesome that's why I am requesting

  • @gopalvarshney7126
    @gopalvarshney7126 Před 10 měsíci

    Ye h aur m kaha se aa gaye third object Mai hai ji jab function getdata call hi nahi hua to aaya kaise kuch to batao

  • @educationandtechnology4497

    Please upload more C++ Video

  • @flexygaming4967
    @flexygaming4967 Před 2 lety

    C++ ma Live test and advanced level tak video banavo

  • @princelodhari2970
    @princelodhari2970 Před rokem

    Sir ham getdata ke function argument calling time me sting ki value kaise pass kare

  • @jaymahadik4345
    @jaymahadik4345 Před 2 lety

    Sir polymorphism and inheritance e bnao please

  • @hindidoubbedmovies9235
    @hindidoubbedmovies9235 Před rokem +1

    sir aap using namespace ka estemaal kyu ni kareee

  • @benspencer7491
    @benspencer7491 Před rokem +1

    When he said chaliye i said suru karte hai.
    😂😂

  • @rohitmahadik1878
    @rohitmahadik1878 Před rokem

    Time is type so not use as class name

  • @technofriendalka4006
    @technofriendalka4006 Před 2 lety

    sir operator overloading kya h

  • @flexygaming4967
    @flexygaming4967 Před 2 lety

    Plz sir.. python ni already playlist 6.

  • @AnuNaik-nu2ct
    @AnuNaik-nu2ct Před rokem

    object as argument how it work in python

  • @Pavanverma97
    @Pavanverma97 Před 2 lety

    Sir pls jaldi jaldi laaao na video 😑

  • @kumarvlogs298
    @kumarvlogs298 Před rokem

    class khatam kaha ho raha hai isme
    please reply sir

  • @shivamchoudharysanatani

    Paid course liya h kya kisi ne sir ka

  • @eccedentesiast4647
    @eccedentesiast4647 Před rokem

    #include
    using namespace std;
    class Time
    {
    int h,m;
    public:
    void getdata ();
    void putdata (Time, Time );
    void display ();
    };
    void Time:: getdata ()
    {
    coutm;
    }
    void Time:: putdata (Time t1,Time t2)
    {
    h=(t1.m+t2.m)/60;
    m=(t1.m+t2.m)%60;
    h=h+t1.h+t2.h;
    }
    void Time:: display ()
    {
    cout

  • @ssfire867
    @ssfire867 Před 2 lety

    Sir this my second comments to you but you are not replying please complete the c++ tutorial sir please 👋👋👋👋👋👋