Added: 2 years ago
From: outofmylaboratory
Views: 6,556
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (27)

Sign In or Sign Up now to post a comment!
  • 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

  • A inst = A();

    if you want to call the constructor, but

    A inst;

    works just fine :P

    nice vid BTW

  • i culdnt get the friend function called in main

  • nice one!!!!!!!

  • 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!

  • stop racing through.

  • C++, where friends can touch your privates

  • @jmasterX roflmfao

  • y dontcha use a compiler?

  • @amoomilad he is using one....like most of mac and unix systems...its called g++

  • you definitely lost me after 6:00 where you started to talk about referencing stream operators

  • Nice tutorial, good speach :D

  • @ 5:00 simple answer, your using a mac....

  • nice video and i fcking love the way u type :* ;d

  • why not let B subclass A instead?

  • overloading the insertion operator was cool :D

  • gr8.....very helpfull!!!!

  • you type crazly fast

  • Thank you. This was very helpful!

  • great job!!

  • Good videos !

  • 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 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

  • 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

  • Another great vid! Much appreciated =)

  • nice!!!!!

  • Great man !!

    Excellent videos !

    Keep up !

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more