Тёмный
No video :(

Pointers to Derived Classes in C++ | C++ Tutorials for Beginners #55 

CodeWithHarry
Подписаться 6 млн
Просмотров 240 тыс.
50% 1

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

Опубликовано:

 

8 июл 2020

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 562   
@CodeWithHarry
@CodeWithHarry 4 года назад
Instagram pe NASA wala video kis kisne dekha? Dekh lena - Instagram.com/codewithharry Aur saare C++ videos ka source code website pe daal diya hai! - codewithharry.com/videos/cpp-tutorials-in-hindi-1
@DivyanshuLohani
@DivyanshuLohani 4 года назад
Harry Bhai java pe tutorial series banao please Btw Love your videos
@akashgoyal7279
@akashgoyal7279 4 года назад
Harry bhai php and asp.net pe videos bnao ki konsa jyda helpful h .
@lilagadtaula7597
@lilagadtaula7597 4 года назад
#codewithharry brother i have a problem related python programming mystr= "i live in urlabari" print(mystr.replace("i", "we")) in this code it changes all "i" in the string so how can we change only a specific word or character in python
@ashutosh-pandit
@ashutosh-pandit 4 года назад
@@lilagadtaula7597 If you want to change :- 1). specific character then use indexing 2). Specific word then use slicing (i.e.- index range)
@devilfrost9491
@devilfrost9491 4 года назад
So Glad your back with C++ 😊😊👍🏻
@Aiyaansh
@Aiyaansh 3 года назад
I just watched this video for 3 times and got complete clarity about pointer to derived class as well as base class, default behaviour. Next video of virtual was so simple because of this video.
@sanukumar6811
@sanukumar6811 3 года назад
bro can you please explain me the code line number 24. why we need to point base class pointer to derived class object? without that it is not running.
@miniart8670
@miniart8670 Год назад
@@sanukumar6811 bro agr aapko smj aaya tha toh please muje bta do
@rohitbhamu2619
@rohitbhamu2619 5 месяцев назад
@@sanukumar6811 because if you don't do that the pointer won't be pointing to anything
@Everything-uo8vt
@Everything-uo8vt 3 года назад
2 minutes of silence for those college teacher's who thinks they are the only source of students to learn programming
@biker_karanpal
@biker_karanpal 3 года назад
Don't compare any RU-vidr to teachers 👍
@biker_karanpal
@biker_karanpal 3 года назад
@Imperfect 👍
@ritik3514
@ritik3514 3 года назад
Hahaha
@criminalcoder6307
@criminalcoder6307 3 года назад
Teachers are useless nowadays and to some extent colleges also... Exceptions are always there.
@oggy107
@oggy107 3 года назад
they aren't even source...
@manavroy7293
@manavroy7293 2 года назад
5:35 No
@amanbhadauria2881
@amanbhadauria2881 3 года назад
All the member of the base class are part of the derived class. However, the derived class can only access members that are public or protected.
@rishabhthakur12327
@rishabhthakur12327 4 года назад
aap bahut hardworking person ho. i like your work👍👍👍
@aaravanand2325
@aaravanand2325 11 месяцев назад
@codewithharry- What was the use of pointing base class pointer to derived class object . Neither it was able to change the value of derived class variable neither it was able to display the value of derived class variable Was it just used here so that we could understand the concepts ? If yes, please reply with a yes there are many comments asking for the same Thankyou
@abrarahmad3897
@abrarahmad3897 Год назад
5:36 In my opinion, no error would be raised since the derived class is already inheriting the base class. Thus, it may not be wrong to point a pointer object of the base class to the derived class, Ig.
@mrcrazyhacker8664
@mrcrazyhacker8664 7 месяцев назад
Yes brother
@criminalcoder6307
@criminalcoder6307 3 года назад
Easiest topic ever It's all about mindset and understanding.. No need to watch again U explain it so nicely that I understood it on first go..
@amanahmed6057
@amanahmed6057 3 года назад
hai ,sachiii
@ashutosh2933
@ashutosh2933 2 года назад
I think u r wrong harry bhai ... 8:32 You said " Isey kehete hai Late Binding " yaha early binding ho rahi hai 15:40 u again said " ye hai run time polymorphism ", no its not, binding is static here and pointer type ko dekh kar , compiler function ko compile time me bind karega us type ke sath.... we can use virtual keyword to achieve late binding
@amarchoudhary2560
@amarchoudhary2560 2 года назад
Yes it is early binding
@ambikadhakal6105
@ambikadhakal6105 4 года назад
Harry, Please zoom the code please
@sabaqureshi4779
@sabaqureshi4779 3 года назад
Pta ni kesay log 3 din mein sari videos dekh letay hain aur unko samajh b aa jata h...maine tou pichly 3 videos 3 baar dekhy hain aur yeh video 2 baar dekha h aur sahi se practice ki h tb ja kr yeh concept clear hua h mujhy....😞
@hardikkhariwal
@hardikkhariwal 4 месяца назад
skill issue
@BHAKTIWALLAH001
@BHAKTIWALLAH001 8 месяцев назад
congrats sir waiting for ur 5million from months ...finally its 5 ....u r really a great person in the world...the way u teach us that any cllg or any universities cant give us ......
@techustaad4845
@techustaad4845 4 года назад
Bro I'm big fan of you. And watching you web development series. I want that please make ecommerce websites just using html & css. Thanks
@varungupta6119
@varungupta6119 4 года назад
sir please make series on how to build logic for beginners using (Data Structure, Algorithms, Decision making statements. Selection statements. Iteration statements. Jump statements. etc) please reply sir
@theoptionalvlog1628
@theoptionalvlog1628 2 года назад
I recommended it, watch this video minimum two time whole concept should be cleared 👍👍👍👍👍
@siddhanttiwari6367
@siddhanttiwari6367 4 года назад
Thank you very much sir for that much hard work for us ,you are the best . I hope you will keep uploading videos on c++ until the course end.😊😊😊
@SumitKumar-bm1hc
@SumitKumar-bm1hc 4 года назад
i'm your new student and subscriber.
@Ayush_.
@Ayush_. 2 года назад
Base class ka pointer shirf base class ki Properties ko hi Access kar skta he ........ jabki derived class ka pointer dono class ki properties ko access kar skta he .....par member function ke naam same hone par derived class ka pointer phlle derived class ke function ko run call krega
@XeroGamingYT
@XeroGamingYT 3 года назад
5:35 error will be there I think because maybe it will also inherit the pointer to base class.
@karanrawat1659
@karanrawat1659 3 года назад
Sir one kind request , please try to visualize us by showing animation that how pointer is being pointed or allocation of memory ,etc.
@rishabh6051
@rishabh6051 3 года назад
you have cleared all my doubts about this chapter thanks for making this video
@Sherwaani
@Sherwaani 4 года назад
I've watched it 3x. Just for enhance my knowledge again & again.
@heyya2968
@heyya2968 3 года назад
3x playback speed nhi hoti yt me
@Sherwaani
@Sherwaani 3 года назад
@@heyya2968 mean 3 times
@heyya2968
@heyya2968 3 года назад
@@Sherwaani accha
@heyya2968
@heyya2968 3 года назад
@@Sherwaani ha thoda complicate kardiya hai isne kum waqt me explain karne ke liye
@shifuji-7154
@shifuji-7154 3 года назад
@@Sherwaani hey buddy , what does biding means here ??
@shivkantchauhan7457
@shivkantchauhan7457 2 года назад
doubt....... hmne base class pointer ko derived class ke object pr point krra dia.. and hm derived class members ko access nhi kr painge....okk to phir base class pointer ko derived class ke object pr point kraake kuch special kr skte h ?? kyuki derived ke obj pr point krra kr bhi vo apne hi members ko access hi kr rha h..... kya vo base class pointer sirf unhi members ko access kr skega jo derived mei inherit hue h??
@anshulpatil7525
@anshulpatil7525 13 дней назад
thank you harry sir for explaining the concept so well
@user-ew7lh1jz6z
@user-ew7lh1jz6z Год назад
sir, in our college, we have to taught exception handling keywords like try, catch throw etc. but you did not cover these topic in your playlist . PLz reply
@AjinkyaAJJadhav
@AjinkyaAJJadhav Год назад
base class pointer can point to derived class object only if base class is inherited publicly to derived class. Remove Public and same will not happen.
@riodak6243
@riodak6243 2 месяца назад
To sir base class ka pointer ko hum derived k object se point Kara ne se fayda kiya hoga Pls help 😀
@TheISP
@TheISP 3 года назад
5:36 I think there will be an error, because Base Class does not contain all features of derived class, but derived class contains all features of base class 11:30 doubt cleared, we can't access unique elements of derived class using base pointer.
@KshitizAgain
@KshitizAgain 4 года назад
Love your Work Harry Bhai!❤️😅Waiting for you to reach 1M Milestone!
@harshpratapsingh1638
@harshpratapsingh1638 3 года назад
Pehle pointers sunke hi dimag phat jata tha lekin aap se padhne baad pointer banne laga thanks yrr is course ke liye🙏🙏
@abrarahmad3897
@abrarahmad3897 Год назад
Harry, just a question, if we cannot access the methods and members of the derived class with the pointer of the base class then what is the use of pointing that pointer of the base class to the object of the derived class? I mean, we could simply made a base class pointer and our code would work perfectly fine while occupying less memory space.
@lavkushdas5529
@lavkushdas5529 Год назад
same Qs of mine. What's the use of pointing to derived class then?
@sunnychauhan702
@sunnychauhan702 4 года назад
You are best teacher in the world sir, thankyou very much
@imabhishektomar_
@imabhishektomar_ Год назад
i think at 7:37 program should not run because bhai int main me upr vale koi bhi function ko call nhi kiya gya shyd
@kumarvlogs298
@kumarvlogs298 Год назад
I have to watch it 4 times now I am clear about all the things happened in that program...... recommended to watch it 2 times or more.....................
@MiniVlogsbySonu
@MiniVlogsbySonu 8 месяцев назад
In start when he said to watch the video twice... I thought he is saying that for views and then when I actually didn't understand so i tried one more time and then it actually started to understand ❤
@parthokaysar2111
@parthokaysar2111 Год назад
Harry sir. You have not told us all about operator overloading. please give a detailed video on it.
@arfeenasif-ut1cs
@arfeenasif-ut1cs 11 месяцев назад
Watch starting videos
@vishalsaxena4869
@vishalsaxena4869 4 года назад
you are just awesome Harry Bhai. I have learn many things from your channel. Video playlist is so awesome. and your way of explaining is mind blowing. one little request that please make tutorials on angular too.' thanks
@hydrocy.9165
@hydrocy.9165 2 года назад
But if the functions are inherited in a different class, won't they have a different memory number allotted to them? Or do they have the same memory number?
@sitadevisushan8074
@sitadevisushan8074 4 года назад
Sir, Please Make A Full Playlist Of Java Programming For Absulate Beginners Plz Sir🙏🙏
@shreyashkumarsahu5985
@shreyashkumarsahu5985 7 месяцев назад
7:41 error logically will not be thrown but the concept which I am getting confused with is that baseclass is kind of inheritating derieved class which seems a bit strange as per my understanding
@talha_coding_tutor
@talha_coding_tutor 11 месяцев назад
No It Wont Throw Error Because It Is Inherited from Base Class Both Pointers Are Interchangable According to me~
@AshuuuMlviya
@AshuuuMlviya 4 года назад
Sir ji c language ke bare Ek video bna dijiye Mene aapki c programming playlist me se #8 video dekh liye hai And I am a biggener
@_just_random_things_
@_just_random_things_ Год назад
for future me looking at this video and the random dude looking in the comments basically what it is - 1)- it is a base class pointer pointing towards the object of the derived class 2)-it can access the functions and members and functions of its own class. but by using the pointer of base class it can only access the overridden members of the derived class by making that function virtual pointers are important because they help in performance , if there is lack of functionality, in prevention od memory leak and buffer overflow
@shahmirkhan7145
@shahmirkhan7145 Год назад
5.36 i think it can not generate error because you can inherit the base class in derived class so you can point base class object to derived class object
@ravinderchauhan9007
@ravinderchauhan9007 4 года назад
hlo herry bhai yor are great bro thanks for lerning c++
@shivanksharma5443
@shivanksharma5443 4 года назад
sir can you please post a course for ethical hacking for absolute beginners. i have been searching for this course on you tube for a long time but cannot get any course for absolute beginners.
@AlanSchooll
@AlanSchooll 3 года назад
@codeWithHarry what is the purpose of storing the location of the object of the derived class in the pointer of base class because all the things that you have explained in this video are possible without this so what is the purpose of this step?
@manavinandimath2334
@manavinandimath2334 2 года назад
same question
@kumkumbhagya51
@kumkumbhagya51 Год назад
aaj maine ye video 2nd time dekhi aur is baar aur bhi ache se samjh aa gyi
@het_mehta
@het_mehta Год назад
yes it will run
@mishitaarora3109
@mishitaarora3109 Год назад
Amazing content sir...your videos are really heplful Please tell can we point to a base class using a derived class pointer...?
@hellosrikanth9
@hellosrikanth9 Год назад
harry bhai you doing up casting here ie: derived class obj is assigned to base class pointer
@maryamfizza
@maryamfizza Месяц назад
Kia hum derived class pointer ko base class k object se point kra skty h???
@dee4tech358
@dee4tech358 4 года назад
harry bhai pls ye btaoo ki agar hmm log laptop ko charge lga ke use kre ge jiase app karte ho to kuch dikkat to nahi hia na pls btaoo
@SanjayKumar-ks5fu
@SanjayKumar-ks5fu 4 года назад
Nice questions
@divy8999
@divy8999 3 года назад
harry bhai please make videos for data structure and algorithm in C++.
@alexdenilock3687
@alexdenilock3687 6 месяцев назад
sir base pointer can point to derived obj. but a derived pointer can"t point to base objects ???
@sarthakjoshi6125
@sarthakjoshi6125 9 дней назад
Harry bhai please cpp ke project aur dsa ki playlist Bana do na
@kumkumbhagya51
@kumkumbhagya51 Год назад
8:33 to agar pointer derived class ka hota base class ka nahi aur fir base class ko point krta to fir display function base class ka call hota na?
@statusworld-hj5jj
@statusworld-hj5jj 7 месяцев назад
base_class_pointer ko obj_derived se initialize karne ka fayda kya jb o kam sare base class ke object ki trahi kare ise banaya kyou c++ walo ne
@Shadow__Frost
@Shadow__Frost Год назад
11:29 most important line in this video
@TonyStark-tu4et
@TonyStark-tu4et 4 года назад
Bro you teached me programming in class 9th
@mohitbalwani
@mohitbalwani 4 года назад
East or west, harry is the best !
@RajvirSingh1313
@RajvirSingh1313 4 года назад
sir did you see my code of CHATBOT AND REMINDER GIVE SUGGESTION ABOUT MY CODE PLEASE :) I AM 12 YEARS OLD BUT YOU GIVE ME INSPIRATION TAHNKS
@HinduWaffenChief
@HinduWaffenChief 4 года назад
Genius sir
@anoopkumarshukla6808
@anoopkumarshukla6808 4 года назад
12 years ??????????????????????? This is the time to play games and enjoy life not for coding.....I don't think you are 12 years old ;)
@HinduWaffenChief
@HinduWaffenChief 4 года назад
@@anoopkumarshukla6808 this shows how narrow minded you are
@anoopkumarshukla6808
@anoopkumarshukla6808 4 года назад
@@HinduWaffenChief ohh your are broad minded I guess.....12 years old means he is probably in 5th or 6th standard ...I don't think this is the age to learn c++...There is something call childhood but your broadness of mind has neglected that...no problem.....keep it up!!
@RajvirSingh1313
@RajvirSingh1313 4 года назад
@John Cena I am learnt python and now i am helping my father and i am in 7th grade it doesn't matter age :))
@codewithahmed9806
@codewithahmed9806 4 года назад
Sir Please Make C# Tutorials sir please give me reply
@AyushKumar-tt4zh
@AyushKumar-tt4zh 3 года назад
17:17 yes it will show an error.
@rishabhthakur12327
@rishabhthakur12327 4 года назад
Harry bhai mujhe aapke sare tutorial best lgte hai please aap aise video bnate rhom hum aapko support krte hai.
@AmanKhan-lj3wh
@AmanKhan-lj3wh Год назад
though got the overall logic at first time but it took around 40 min to well understood.
@user-tw7kz3jd6y
@user-tw7kz3jd6y Год назад
If we cannot access derived class functions by declaring object class pointer to derived class object. Then what is the point of declaring object class pointer as such????
@copyrightfreegameplays7731
@copyrightfreegameplays7731 3 дня назад
7:35 yes
@AyazKhan-kr6qv
@AyazKhan-kr6qv 3 года назад
I watched 3 times and now 101 percent clear
@gamerscell9975
@gamerscell9975 2 года назад
video ko 2nd time watch krne ma full smjh agaya ' \
@aryanshah3967
@aryanshah3967 2 года назад
will not throw error as derived class is inherited from base class
@thecybersahil
@thecybersahil 4 года назад
*Dude make a video on shortcuts of Vs code* . like shortcut of comment out and all.
@areyaarpiyush.
@areyaarpiyush. 4 года назад
Harry sir aur kitne tutorials aayenge please tell me because i and my all friends learning c++ by you so please tell me so that I can tell them
@foodiegirl01
@foodiegirl01 4 года назад
Herry bhai android studiyo me app banate time internet on rakhna hi padtahe ki off ho tobhi chalega
@mitsu7june
@mitsu7june Год назад
5:48 yes it will throw error
@adityarajsinghgour3113
@adityarajsinghgour3113 3 года назад
can u tell which color theme u are using in VS Code
@arvindrawat247
@arvindrawat247 Год назад
5:40 no is my answer harry sir
@Aiyaansh
@Aiyaansh 3 года назад
5:40 Yes it will throw an erroy
@minashahid1115
@minashahid1115 Месяц назад
aik cheez yahan pa samjh n ai ka jab video 11 min k hui waha p ap na bataya ka ya jab pointer ka acc function call hua to wo late binding ha although late binding achieve virtual function sa n hoti yahan ya early binding nahi ha before writing virtual keyword
@aryantiwari2103
@aryantiwari2103 Год назад
harry bhai these all are good thanks for giving complete c++ course
@akashgoyal7279
@akashgoyal7279 4 года назад
Harry bhai aapke videos bhot helpful hote hain. Please php and asp.net ke liye video bnao ki konsa jyda helpful h.
@PradeepKumar-qv2vr
@PradeepKumar-qv2vr 3 года назад
why the base class pointer points to the derived class object, so what is the purpose of it other than accessing the base class variable
@user-wq4uc8om6z
@user-wq4uc8om6z 2 месяца назад
yes , its show error
@svarshithkumar3847
@svarshithkumar3847 Год назад
program will run and base class display will be printed
@feelthesilence8071
@feelthesilence8071 2 месяца назад
same code and outputs are the on the geeks for geeks website for the same topic
@AlanSchooll
@AlanSchooll 3 года назад
@codeWithHarry I cannot understand why you pointed the base class pointer to the reference of the derived class object? What is the purpose of this?
@sanyaramchandani7406
@sanyaramchandani7406 4 года назад
No...It will not throw error..
@adityakumargupta8824
@adityakumargupta8824 5 месяцев назад
Sir here why we can't define the derived class pointer to base class object.
@rishabhjain911
@rishabhjain911 3 года назад
I hope this gonna work at 7:30 because there is no syntax error , no object creation error so In my opinion it is gonna work
@titasmajumder3983
@titasmajumder3983 Год назад
Is there any way by which we can access base class show() function with the help of derived class pointer?
@user-tw7kz3jd6y
@user-tw7kz3jd6y Год назад
well since derived class inherited base class publically so it should not show error.
@RajatSingh-ew6zk
@RajatSingh-ew6zk 3 года назад
sir sb smjh aaya bs y nhi aaya k jb hum alag ka alag pointer le rhe h toh base class k pointer m derived class k object k address ko store karwane ka ky fayda hua
@aayushibhavsar7864
@aayushibhavsar7864 2 года назад
Sir please make video on smart pointer and its types
@satyamrajput825
@satyamrajput825 2 года назад
sir isme function overriding ka concept bhi to lagegA
@sharwanchoudhary1762
@sharwanchoudhary1762 4 года назад
Plese make video on pythan
@engineerbhai7642
@engineerbhai7642 4 года назад
You are great coder in you tube.
@jinsishahcs7889
@jinsishahcs7889 2 года назад
harry bhai you are a saviour
@codesrhodes3757
@codesrhodes3757 2 года назад
AAP sachme mahan ho harry bhaiya
@mikey_0.
@mikey_0. 4 года назад
Great teacher
Далее
Why are you not creating anything in c++ ?
14:46
Просмотров 109 тыс.
Получили тысячи $$ на "старье".
20:10
Sevinch Ismoilova - Xayollarim 18-Avgust 19:00 Premera
00:19
How Discord Stores TRILLIONS of Messages
13:06
Просмотров 657 тыс.
Garbage Collection (Mark & Sweep) - Computerphile
16:22
Learn to code with an unfair advantage.
15:05
Просмотров 172 тыс.
Polymorphism in C++ | C++ Tutorials for Beginners #54
20:43
God-Tier Developer Roadmap
16:42
Просмотров 7 млн
Получили тысячи $$ на "старье".
20:10