Added: 9 months ago
From: thenewboston
Views: 13,812
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (55)

Sign In or Sign Up now to post a comment!
  • Comment removed

  • @jackkadez you can't access the inherited members with that.

  • Am I right

  • I get it, the pointer is used for when you need to access the inherited members from the subclass in another class or the main function

  • I really love the way you tell it man..no doubt!!

  • Uh... I'm pretty sure ninjas are more powerful than monsters.

  • is the polymorphism in c++ has anything to do with polymorphism in algebra ?

  • Why do you need the pointers? It is valid just to do n.setAttackPower(26);

  • can you make a base class array like in java?

  • Thanks bucky You r Rock dude !!!

  • What is the importance of Polymorphism? :-/

  • @rainbowcrak I Made A Simple 2D minecraft in java, and trust me, polymorphism is so important.

  • "Not a ninja cop. A ninja......chop"

    AHSUEHASUEUHASEHUAUHSE

  • ninja...CHOP :D

  • Why you make the class in the same file, :P.

  • @trueredexe To keep it all easy to follow.

  • great tutorial bucky !!! love it ...

  • hahaha, "Public Enemy"

  • You have got some wild imagination bucky!

    I love your tutorials!!! :D

  • After this video, I went back and took a good look at pointers. I don't think I could have understood it without watching your tutorials. Thanks a lot!! :D

  • Why not do "n.setAttackPower(29); m.setAttackPower(99);"?

  • 1:44

  • 1:69

  • what if i wanted NINJA MONSTERS!?

    tell me what to do then mr smarty pants.

  • 09:04 thumbs up if you have noticed this mistake before

  • This videos b****ks because my mate ...he did ninjitsu and he never learnt nothing 'bout poly -whatever morphism, I suggest you keep on watching 'PowerRangers' and this time pay attention.

    PowerRangers there are 5 types

    Red · Yellow · Blue · Pink · Black · Green · White

    there is NO 'C++' Ranger , and thats true.

  • Polymorphism hasn't to do with this. It's about regenerating...Come on Bucky. Teach us the right kind of stuff.

  • Comment removed

  • thank you

  • You should really record in HD.

  • @rockYhre I think recording simple text in HD and long uploading on yt have no sense. But in Unreal DK tuts he starts this :).

  • Can you go over threads?

  • @mike3214545 Hmm..... Maybe Bucky starts learn threads in something like C++ Game Dev. Just look on Java tuts and there is how he do it.

  • @kamykerDDOpl Java threads are different than C++ threads. It wouldn't have mattered for me any ways if he did though. Each OS has a different API. I'm running linux, he's running windows.

  • What I did was make the attackPower var protected and then just set them in my Ninja and Monster's class constructor without using a public function. That means every Ninja and every Monster object is always going to have the same attackPower without me setting it. I don't really know if you'd want to set each monsters' attackPower differently when making a game.

  • Omg, i needed to learn this. THANK YOU : )

    Love yo ass : )

  • Not Ninja cop, Ninja CHOP

  • sheesh 55 videos to get to polymorphism? Must be a detailed series :)

  • using protected is not recommended, since it suggest one is not really understanding the OO principle. ;)

    (maybe make enemy an ABC? :)

    Keep it up! :D

  • you could just :

    Ninja n;

    n.attackPower(26);

    no need of the pointer.

  • @Cezarijus I think he wanna show how to sort bunch of things.

  • @Cezarijus Thats what i thought... thanks

  • @Cezarijus He was showing you important details about polymorphism which allow you to make a base class Pointer which point to inherited.

  • @Cezarijus what if the function was private?

  • @Kapetozzo

    It should have been private, with a protected setter & getter accessor.

  • Bucky you should make a C++ game development tutorial :D! using a library like SDL or Allegro

  • Thanks, Bucky.

  • Feeling some C++ Game Development videos.

  • @SCHUCH512 probably it was just a bad burrito... :(

  • first!

  • that word induced mindfuck 

  • nice!

  • inb4first

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