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
really you are hardworkinng to bring some changes giving knowledge to everyone free of cost.. its great initiative ..god bless your work..
Paise milte hai usko views ke
@@dobbby2210 par hum to pay nahi karna hai na. thats great na. udemy or other source mein hum pay karna hai.
real he is giving best knowledge for free without any money
@@dobbby2210 to tu bhi banade bhai videos aur pasise kamale
This level of hardwork cannot be ignored. Great job harry.
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!
Bi do know that you are really a great teacher . Sir I respect you in my heart ❤️❤️❤️
Thank you so much ... until now everything is clear and good ...im following your playlist and i believe it would be clear even after
I am seeing your third comment!
@@AshutoshKumar-fu6qe tum sabka comment hi dekhte rhte ho??
@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.
You are the best programming teacher in the world. Thanks Sir!
God bless you!
How to create own Operating systems for PC;
Can u help me
@@mohammadumair5239 yes i can help
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
Please make video on competetive programming path❤️
+1
yes its much needed
005446
Than you sir you cleared a lot of confusion i had in object oriented programming. Thanks a lot. God bless you Sir
Krishna really bless you ☺️☺️☺️🤗🥳
God*
He is Muslim
@@UlT989Krishna *
Hare Krishna 🙏
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 ❤️
Thank u so much sir❤, I watch your all videos, it's very easy to understand 😊
Dil se thank u harry bhai for making it so easy❤
Thanks for clearly explaining by taking different examples :)
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 💞🔥
Hello bhai
U r doing grt job with enthusiasm
Next video kab aayegi
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
Really appreciate 🙏🏻 for this contact❤❤❤
Please make video on competetive programming ☺
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
bhai isme hum jab second intialization ( d(b) )
Your Hindi gaming zone channel is also very good.
Thanks harry bhai for making video💞 💖
Thanks sir 🙏🏻🙏🏻🙏🏻
Thank you sir
Bhai aap kisi ki baat mat suno aap bilkul perfect padhate ho
You are the best !!!!
6:38 Yes the program will run without any error.
Fact : Do you know almost all the RUclipsrs are genius.
Awesome bro
6:37
Yes sir it will work
Well well well done sir ji
Cool explanation
Bhai nice video
Love you harry bhai...you are the best
Hi my name is Peeyush and I'm learning python in 10 years old. I comes to args,kwargs,lambda etc.
That's Amazing!! Keep Going Bro!!
@@Pooh__7__ I completed it on tkinter
Do you watch Pikachu ?
Love from Kolkata ❤️💐
Love your content ❤💜
Thanks Dr Harry
Yes, b(a + j) will run
Plz add videos off unary and binary operator overloading in c++
amazing videos
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
very cool bro...also start a c# windows forms series after this ...
How to create own Operating systems for PC;
Can you help me
sir please continue the series and complete the course
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...
How can we start competitive programming? Please create a video on this topic
Yes sir please
Yes, it will run.
Bro but it will not give garbage value when we type manually in body of constructor if we initialize b first
bahi c++ standard template wagera bhi sikhaoge kya....?
thanks bhai
every thing is fine and good and =
likh speed of speak etc
10:52 what if we write it as int a,b; instead of int a; int b; then what will be o/p?
Thanks Harry Bhaiya
11:48 my code is running with the same value of a how i cant able to understand in sublime text
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🥺🥺🥺
Harry bhai please make a tutorial to make tetris in pygame
🥳🥳🥳 thank you Harry bhai .
Harry sir, what about initialization in Derived class?
Completely Optimal speed....
But fast dekhne ki habit h
3x hota tho maza aa jata
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?
Bhai game banale fir isko use karke
@@jaykumarpatil4548 game nahi windows 12
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.
sir can you suggest any
question book for practice
Harry bhai is the best❤❤
Bht helpful h sir 🤗🤗
love you sir for such amazing lectures
Real fair and lovely is endl❤
6:40 yes, it will run.
Thank you so much for these videos Harry bhaiya, they help me a lot!! :D
Bro make a video on Competitive programming
How to get off campus placement
ultra pro max level video
//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
Harry Bhai please web development me word press pe tutorial banao🙏
thank you bhai 👌👌💕💕💕💕❤❤❤❤
thank you harry bhaiya
Which are the specific conditions to use member initializer list?
6:40 Yes it will run and not throw an error
Starting of video is✌️👍😅😂🤣
Or bro aise hi dalte rho c++ ki ye puri krni phle tho👍👍🤘🤘🤘🤘❤️❤️❤️
next video kab ayegi any idea ??
9:15 bro mereko bhi shock lag gaya.. mera code noramally run hogaya
slow ho tw fast kar..fast ha tw slow kar😄😄😄
love you harry vai.
yes really enjoyed
9:10 yes it will also run
Love you harry bhai
yes, it will run -->b(i+j)
Hlo
yr bro dynamic memory allocation pr bhi ik video bna do
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
Bhai 1 video for how to add human verification in websites please
THANK YOU :-)
You are really great Harry bhai😃😃I love your videos
6:42 add honga
thank you sirrrrrrr
your videos are helpful
love u sir...❤
best C++ tutorial
mast
Thank you Harry Bro ❣️
Initialization list class data members ko data dene ka way
thank you, Harry bhai!
Please sir tell me about vector library where use it
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.
Awsm
All time best👏
Number of viewer decreased as the playlist progressed further. So, whoever has come this far from the beginning to here, congratulate yourself.