Let's Learn C++ ~ #20 ~ Override



Learn intermediate programming in C++ (Cpp) in this series of tutorials! This 20th lesson focuses on Override, override final, classes, and how they relate to virtual.

=============================

➤ Exercises:

➤ Download Visual Studio:

=============================
INTERMEDIATE EPISODES:

♦ LLC++ #20 ~ Override

♦ LLC++ #19 ~ Abstract, Interface Classes

♦ LLC++ #18 ~ Virtual

♦ LLC++ #17 ~ Polymorphism – Class p4

♦ LLC++ #16 ~ Inheritance – Class p3:

♦ LLC++ #15 ~ Visual Studio Setup + My First Program:

=============================
PLAYLISTS:

➤ Let’s Learn C++: INTERMEDIATE

➤ Let’s Learn C++: BASICS

➤ Let’s Learn PYTHON: BASICS

➤ Let’s Learn PYTHON: OOP

➤ Let’s Learn PYTHON: Scripting

➤ Secret Projects

=============================

— FOLLOW ME! —





Music by Juto:
justin-totten.com

=======================================

New Episode (nearly) Every Friday

=======================================

PATREON SUPPORTERS!
– Jeremy W.
– Marcus G.
– JK
– Mike J.

=============================
☁♡ Keep the Dream Alive! ♡☁

My comments and words are my own and do not represent the views or opinions of my employer in anyway.

Nguồn: https://chototdayroi.com

Xem thêm bài viết khác: https://chototdayroi.com/cong-nghe/


Article Categories:
Công Nghệ

Comments

  • I'm watching this video to help me better understand Unreal Engine's API since I couldn't find great definitions in the documentation. I still don't get how they use it in this case (the only thing I can think of is that it's some sort of safeguard to protect these functions from being modified? I kind of understand that perhaps it would be in the Tick function since it's called every frame, so it would essentially override itself somehow, but as its included in BeginPlay as well, which is only called once, my theory goes out the window). Check it out:

    This is in a header file, I will start from public class declarations to avoid this comment being too lengthy:

    public:

    // Sets default values for this Actor's properties
    APickup();

    // Called when the game starts or when spawned
    virtual void BeginPlay() override ;

    // Called every frame
    virtual void Tick( float DeltaSeconds ) override ;

    I REALLY don't understand how/why override is used in this case. Any thoughts?

    kegan June 7, 2020 9:11 am Reply
  • As far as I know using c++17, you don't need to have the keyword 'override' when using the keyword 'final' as 'final' implies overriding just as 'override' implies virtual. My IDE gives me a message if I have both saying that I do not need both. I absolutely love your videos and I was wondering if you are ever going to make a video on unions?

    Rubik's Cubed June 7, 2020 9:11 am Reply
  • Hello bro. Thanks for this videos. Please is it possible that you make some videos on Ray Mapping in C++ in the nearest future? Thanks.

    Olabode OLANIPEKUN June 7, 2020 9:11 am Reply
  • underated series 🙁 , thanks for staying strong !

    Karim Jerbi June 7, 2020 9:11 am Reply
  • Awesome 🙂 looking more on C++

    Sanjay Shr June 7, 2020 9:11 am Reply
  • Where do I get you're tutorials of Data skeletons​ on python

    arjun kashyap June 7, 2020 9:11 am Reply

Leave a Comment

Your email address will not be published. Required fields are marked *