Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

C++ Basic Skills: Lesson 24 "Friend Classes and Functions"

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
6,479
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Sep 2, 2009

Here we learn a way to give specific functions or classes access to private members.

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 5 dislikes

Link to this comment:

Share to:

Top Comments

  • C++, where friends can touch your privates

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

see all

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

  • @jmasterX roflmfao

  • i culdnt get the friend function called in main

  • nice one!!!!!!!

    

  • nice!!!!!

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

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

  • stop racing through.

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