Your last point just helped me out with my assignment. This could've taken a long time to find it in my scripts! First attempt in google brought me here :D Fav + Thumbs up!
excellent presentation about the friend classes and the functions.. but i have a small doubt , you have created an instance and displayed in the cout statement as cout<<"intance.x" with private member is that will be ok to execute.... please let me know...
awesome vid....excellent explanation of friend classes and functions...guys i used it for my the preparations of my end semester exams in my enginering years
05:14 you know why A inst(); cause an error?
that is because u dont instantiate the class A, instead u make a function prototype that return instance of class A
slier81 1 month ago
A inst = A();
if you want to call the constructor, but
A inst;
works just fine :P
nice vid BTW
bbugarschi 4 months ago
i culdnt get the friend function called in main
ajita6 6 months ago
nice one!!!!!!!
ajita6 7 months ago
Your last point just helped me out with my assignment. This could've taken a long time to find it in my scripts! First attempt in google brought me here :D Fav + Thumbs up!
1aMattes 8 months ago
stop racing through.
ankitnanda1 11 months ago
C++, where friends can touch your privates
jmasterX 1 year ago 12
@jmasterX roflmfao
elementu2011 4 months ago
y dontcha use a compiler?
amoomilad 1 year ago
@amoomilad he is using one....like most of mac and unix systems...its called g++
AllanMVarkey 10 months ago
you definitely lost me after 6:00 where you started to talk about referencing stream operators
digital111x 1 year ago
Nice tutorial, good speach :D
3DevTV 1 year ago
@ 5:00 simple answer, your using a mac....
spiderman1321 1 year ago
nice video and i fcking love the way u type :* ;d
lub094 1 year ago 7
why not let B subclass A instead?
Techn0Junki3 1 year ago
overloading the insertion operator was cool :D
Tempestclaw 1 year ago
gr8.....very helpfull!!!!
MrArunmaxi 1 year ago
you type crazly fast
Anddos25 1 year ago 3
Thank you. This was very helpful!
jonaswang79 1 year ago
great job!!
soniyagandhi1 1 year ago
Good videos !
rome877 1 year ago
excellent presentation about the friend classes and the functions.. but i have a small doubt , you have created an instance and displayed in the cout statement as cout<<"intance.x" with private member is that will be ok to execute.... please let me know...
satya1431434 2 years ago
@satya1431434 if you have intance.x in quotations it'd work yeah...
But since that's probably an error you made, that shouldn't work unless x is public instead of private
Tempestclaw 1 year ago
awesome vid....excellent explanation of friend classes and functions...guys i used it for my the preparations of my end semester exams in my enginering years
sheikhzubayr 2 years ago
Another great vid! Much appreciated =)
Yesult 2 years ago
nice!!!!!
ajita6 7 months ago
Great man !!
Excellent videos !
Keep up !
nois2222 2 years ago