Initialization list in Constructors in Cpp | C++ Tutorials for Beginners #49

Поделиться
HTML-код
  • Опубликовано: 15 сен 2024
  • Download the best IDE for C, C# and C++: bit.ly/WholeTo...
    ►Source Code & Resources: codewithharry....
    ►This video is a part of my C++ playlist: • C++ Tutorials In Hindi
    ►Checkout my English channel here: / programmingwithharry
    ►Click here to subscribe - / @codewithharry
    Best Hindi Videos For Learning Programming:
    ►Learn Python In One Video - • Python Tutorial In Hin...
    ►Python Complete Course In Hindi - • Python Tutorials For A...
    ►C Language Complete Course In Hindi -
    • C Language Tutorials I...
    ►JavaScript Complete Course In Hindi -
    • JavaScript Tutorials I...
    ►Learn JavaScript in One Video - • JavaScript Tutorial
    ►Learn PHP In One Video - • Learn Php In One Video...
    ►Django Complete Course In Hindi -
    • Python Django Tutorial...
    ►Machine Learning Using Python - • Machine Learning Tutor...
    ►Creating & Hosting A Website (Tech Blog) Using Python - • [Hindi] Web Developmen...
    ►Advanced Python Tutorials - • Intermediate/Advanced ...
    ►Object Oriented Programming In Python - • Object Oriented Progra...
    ►Python Data Science and Big Data Tutorials - • Python Data Science an...
    Follow Me On Social Media
    ►Website (created using Flask) - www.codewithhar...
    ►Facebook - / codewithharry
    ►Instagram - / codewithharry
    ►Personal Facebook A/c - / geekyharis
    Twitter - / haris_is_here

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

  • @pranaysrivastava6984
    @pranaysrivastava6984 4 года назад +129

    really you are hardworkinng to bring some changes giving knowledge to everyone free of cost.. its great initiative ..god bless your work..

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

      Paise milte hai usko views ke

    • @aishwaryaanand7870
      @aishwaryaanand7870 2 года назад +8

      @@dobbby2210 par hum to pay nahi karna hai na. thats great na. udemy or other source mein hum pay karna hai.

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

      real he is giving best knowledge for free without any money

    • @user-pd4kq6jy3r
      @user-pd4kq6jy3r Год назад +3

      @@dobbby2210 to tu bhi banade bhai videos aur pasise kamale

  • @utsavseth6573
    @utsavseth6573 Год назад +16

    This level of hardwork cannot be ignored. Great job harry.

  • @HarishSumant
    @HarishSumant 2 года назад +7

    I just had fear in my mind by looking at the name of the video, but at the end of video it turned out to be a basic thing.Thank you Harry!

  • @abhishekkapoor5265
    @abhishekkapoor5265 4 года назад +14

    Bi do know that you are really a great teacher . Sir I respect you in my heart ❤️❤️❤️

  • @swethachilveri4123
    @swethachilveri4123 4 года назад +30

    Thank you so much ... until now everything is clear and good ...im following your playlist and i believe it would be clear even after

    • @AshutoshKumar-fu6qe
      @AshutoshKumar-fu6qe 3 года назад +3

      I am seeing your third comment!

    • @satwikkumar3794
      @satwikkumar3794 2 года назад +1

      @@AshutoshKumar-fu6qe tum sabka comment hi dekhte rhte ho??

    • @AshutoshKumar-fu6qe
      @AshutoshKumar-fu6qe 2 года назад +1

      @Satwik Kumar If you don't feel bad you are too doing that and what's wrong in reading comments. Don't try to find odds in others.

  • @hrishiraj1761
    @hrishiraj1761 4 года назад +11

    You are the best programming teacher in the world. Thanks Sir!
    God bless you!

  • @ArnavSingh-im5bj
    @ArnavSingh-im5bj 3 года назад +16

    Thank you so much for your dedication, the way you simplify topics makes you a very loved teacher because you are not trying to show how smart you are but you actually care about teaching. we love you

  • @VivekJaviya
    @VivekJaviya 4 года назад +35

    Please make video on competetive programming path❤️

  • @thetravellervlogs84
    @thetravellervlogs84 3 года назад +8

    Than you sir you cleared a lot of confusion i had in object oriented programming. Thanks a lot. God bless you Sir

  • @Forever._.curious..
    @Forever._.curious.. 3 года назад +36

    Krishna really bless you ☺️☺️☺️🤗🥳

  • @rishabnayal4430
    @rishabnayal4430 2 года назад +5

    this video should be at no 48 and 48th video in 49 bcz Initialization list in Constructors used in that video .. btw u r great teacher ❤️

  • @sapnachawla_
    @sapnachawla_ 4 года назад +4

    Thank u so much sir❤, I watch your all videos, it's very easy to understand 😊

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

    Dil se thank u harry bhai for making it so easy❤

  • @gandhijainamgunvantkumar6783
    @gandhijainamgunvantkumar6783 2 года назад +1

    Thanks for clearly explaining by taking different examples :)

  • @jaydeeprathod176
    @jaydeeprathod176 4 года назад +4

    Sir thank you from inner of my heart i am in IT sem2 now i have passed sem 1 by learning with your c language tutorial 😄 . Now please sir one request, please bring dbms tutorial 💞🔥

  • @sandipkumarsingh7597
    @sandipkumarsingh7597 4 года назад +4

    U r doing grt job with enthusiasm
    Next video kab aayegi

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

    In time 6:40 ----> program will run and value of a is i and value of b is i+j
    So as per object , i = 4 and j = 6
    So a is equal to 4 and b is equal to 10

  • @Ritik-y5w
    @Ritik-y5w Год назад +1

    Really appreciate 🙏🏻 for this contact❤❤❤

  • @ChoteGyani
    @ChoteGyani 4 года назад +4

    Please make video on competetive programming ☺

  • @adityachakrabarty4
    @adityachakrabarty4 2 года назад +2

    I created a program like this but it was not throwing any garbage value as said in the vdo:
    #include
    using namespace std;
    class test{
    int d;
    int j;
    public:
    test(int a, int b): j(a),d(b){ //should throw a garbage value according to Harry bhai
    cout

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

    Your Hindi gaming zone channel is also very good.

  • @programmingwithjavascript3579
    @programmingwithjavascript3579 3 года назад +2

    Thanks harry bhai for making video💞 💖

  • @RaginiYadav-dw3cm
    @RaginiYadav-dw3cm Месяц назад +1

    Thanks sir 🙏🏻🙏🏻🙏🏻

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

    Thank you sir

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

    Bhai aap kisi ki baat mat suno aap bilkul perfect padhate ho
    You are the best !!!!

  • @ThatGuy0275
    @ThatGuy0275 2 года назад +1

    6:38 Yes the program will run without any error.

  • @sakalagamingyt3563
    @sakalagamingyt3563 2 года назад +6

    Fact : Do you know almost all the RUclipsrs are genius.

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

    Awesome bro

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

    6:37
    Yes sir it will work

  • @mdrehanfarid2134
    @mdrehanfarid2134 2 года назад +1

    Well well well done sir ji

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

    Cool explanation

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

    Bhai nice video

  • @LMPSewas
    @LMPSewas 4 года назад +1

    Love you harry bhai...you are the best

  • @ReenaDevi-kp7vn
    @ReenaDevi-kp7vn 4 года назад +3

    Hi my name is Peeyush and I'm learning python in 10 years old. I comes to args,kwargs,lambda etc.

  • @footballcreativeeverywhere260
    @footballcreativeeverywhere260 2 года назад +1

    Love from Kolkata ❤️💐

  • @ChoteGyani
    @ChoteGyani 4 года назад +3

    Love your content ❤💜

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

    Thanks Dr Harry

  • @dollcyjain2452
    @dollcyjain2452 2 года назад +1

    Yes, b(a + j) will run

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

    Plz add videos off unary and binary operator overloading in c++

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

    amazing videos

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

    harry bhai inka use inheritance and composition mai hota hai mainly ,kya aap eise next video mai add kar sakte ho ?
    // use case 1 in inheritance
    class Person
    {
    public:
    Person(int a){ this->age=a; }
    void printAge(){ std::cout

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

    very cool bro...also start a c# windows forms series after this ...

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

      How to create own Operating systems for PC;
      Can you help me

  • @sarthaksolanki7894
    @sarthaksolanki7894 4 года назад +1

    sir please continue the series and complete the course

  • @dakshiaggarwal9627
    @dakshiaggarwal9627 4 года назад +1

    Can you plss tell the flow in which you are going to cover topics for C++.....In this manner it becomes cumbersome to follow along with tutorials where new tutorial is coming everyday...

  • @manjuralammiddey7209
    @manjuralammiddey7209 4 года назад +3

    How can we start competitive programming? Please create a video on this topic

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

    Yes, it will run.

  • @_Jaygurjar
    @_Jaygurjar 2 года назад +2

    Bro but it will not give garbage value when we type manually in body of constructor if we initialize b first

  • @GauravKumar-dw2ml
    @GauravKumar-dw2ml 4 года назад +2

    bahi c++ standard template wagera bhi sikhaoge kya....?

  • @kunalshahare9041
    @kunalshahare9041 2 года назад +1

    thanks bhai

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

    every thing is fine and good and =
    likh speed of speak etc

  • @shreyakatwate8589
    @shreyakatwate8589 2 года назад +1

    10:52 what if we write it as int a,b; instead of int a; int b; then what will be o/p?

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

    Thanks Harry Bhaiya

  • @samrudhisahu2918
    @samrudhisahu2918 3 года назад +2

    11:48 my code is running with the same value of a how i cant able to understand in sublime text

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

    Harry bhai main abhi 10th me hoo maine aapki python playlist se bohat seekha,books padhi, practice ki ab mujhe aage kya krna chahiye (bhai mujhe machine learning seekhni h but class 10 me calculus, statistics,linear algebra nhi padhaya gya h ) Pls advise me Harry Bhai🥺🥺🥺

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

    Harry bhai please make a tutorial to make tetris in pygame

  • @aniketsahi7778
    @aniketsahi7778 3 месяца назад

    🥳🥳🥳 thank you Harry bhai .

  • @aguywholikescoolanimepics5194
    @aguywholikescoolanimepics5194 2 года назад +2

    Harry sir, what about initialization in Derived class?

  • @garvbhatt7513
    @garvbhatt7513 3 года назад +2

    Completely Optimal speed....
    But fast dekhne ki habit h
    3x hota tho maza aa jata

  • @shatviksmit3388
    @shatviksmit3388 3 года назад +6

    12:39
    Sir you said we use initialisation section when our constructor body is complex but as of now we have only assigned values to our data members
    So, will there be any example of complex constructors later?

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

      Bhai game banale fir isko use karke

    • @sahilbaori9052
      @sahilbaori9052 2 года назад +3

      @@jaykumarpatil4548 game nahi windows 12

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

      When our constructor body contains many lines of code, we prefer to assign values in the initialization list syntax & not in the constructor main body.

  • @amanyara2104
    @amanyara2104 2 года назад +2

    sir can you suggest any
    question book for practice

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

    Harry bhai is the best❤❤

  • @NirajKumar-dv3zf
    @NirajKumar-dv3zf 3 года назад +1

    Bht helpful h sir 🤗🤗

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

    love you sir for such amazing lectures

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

    Real fair and lovely is endl❤

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

    6:40 yes, it will run.

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

    Thank you so much for these videos Harry bhaiya, they help me a lot!! :D

  • @muneebs3474
    @muneebs3474 4 года назад +1

    Bro make a video on Competitive programming
    How to get off campus placement

  • @U2011-n7w
    @U2011-n7w 7 месяцев назад +1

    ultra pro max level video

  • @program-w6m
    @program-w6m 3 месяца назад

    //initialization of list in constructors in c++ by me
    #include
    using namespace std;
    class add{
    int a;
    int b;
    int sum;
    public:
    add(int x, int y):a(x),b(y),sum(x+y){
    cout

  • @ankitmaheshwari9441
    @ankitmaheshwari9441 4 года назад +1

    Harry Bhai please web development me word press pe tutorial banao🙏

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

    thank you bhai 👌👌💕💕💕💕❤❤❤❤

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

    thank you harry bhaiya

  • @zkhann7818
    @zkhann7818 2 года назад +2

    Which are the specific conditions to use member initializer list?

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

    6:40 Yes it will run and not throw an error

  • @abhaybindal4512
    @abhaybindal4512 4 года назад +3

    Starting of video is✌️👍😅😂🤣
    Or bro aise hi dalte rho c++ ki ye puri krni phle tho👍👍🤘🤘🤘🤘❤️❤️❤️

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

      next video kab ayegi any idea ??

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

    9:15 bro mereko bhi shock lag gaya.. mera code noramally run hogaya

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

    slow ho tw fast kar..fast ha tw slow kar😄😄😄
    love you harry vai.

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

    yes really enjoyed

  • @NiteshSingh-mf3rx
    @NiteshSingh-mf3rx 2 года назад

    9:10 yes it will also run

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

    Love you harry bhai

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

    yes, it will run -->b(i+j)

  • @ZeeshanAli-hz8sc
    @ZeeshanAli-hz8sc 4 года назад +1

    yr bro dynamic memory allocation pr bhi ik video bna do

  • @IDK-sk2yj
    @IDK-sk2yj 2 года назад +3

    a little bit of modification in the code :
    #include
    using namespace std;
    class Test{
    int a;
    int b;
    int sum;
    public:
    Test(int i, int j) : a(i), b(a + j), sum(a+b) {
    cout

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

    Bhai 1 video for how to add human verification in websites please

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

    THANK YOU :-)

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

    You are really great Harry bhai😃😃I love your videos

  • @gauravmasand
    @gauravmasand 3 года назад +2

    6:42 add honga

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

    thank you sirrrrrrr

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

    your videos are helpful

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

    love u sir...❤

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

    best C++ tutorial

  • @RushikeshMalani
    @RushikeshMalani 2 года назад +1

    mast

  • @D-Coder440
    @D-Coder440 Год назад

    Thank you Harry Bro ❣️

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

    Initialization list class data members ko data dene ka way

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

    thank you, Harry bhai!

  • @rahul0singh0
    @rahul0singh0 4 года назад +1

    Please sir tell me about vector library where use it

  • @jai.shri.ram.3000
    @jai.shri.ram.3000 4 года назад +1

    harry sir if we are using the proper syntax and same time if I initialize the (a) &(b) in { } then the syntax value are not preferred on the { } part .
    Any reason for that like you had said that during run time the aspect or syntax is to be followed in (F I F E) first in first execute so why it is not following over here.

  • @DineshSingh-hx5kw
    @DineshSingh-hx5kw 2 года назад

    Awsm

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

    All time best👏

  • @Md.NowshadIslam-l4v
    @Md.NowshadIslam-l4v Год назад +1

    Number of viewer decreased as the playlist progressed further. So, whoever has come this far from the beginning to here, congratulate yourself.