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

Python OOP Construct & Destruct | 20

Loading...

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

Uploaded by on Dec 21, 2010

We play with OOP a little bit once again and I try to explain as simply as I can what Construct and Destruct do. Don't worry if you don't follow this, it's good to get the basics of it in your head so later it will sink in. Basically when you make an Object from a Class template, you can use "magic" functions that can be called automatically (or in other special cases) -- In this case they are called when you -- 1: You create the object (Construct) or 2: When you delete the object (Destruct).

http://jream.com

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (3)

Sign In or Sign Up now to post a comment!
  • @trailingdot lol ty for explaining that was wondering myself too. also ty for keeping it down to earth lol some people use to many big random words for some reason thats why i like jreams tutorials keeps it down to earth more or less

  • In Java every class automatically extends Object if nothing else is specified.

  • (object) was used because they could not correct the mistakes in earlier versions of Python. The mistake could not be fixed so what they did was to have any class that is created use the "object" class. So it is like "object" is the parent class and all other classes are its children .

    Thanks for making these great videos by the way!

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