C++ Method Chaining

Subscribers:
58,800
Published on ● Video Link: https://www.youtube.com/watch?v=FjYau0oXh4c



Duration: 0:00
116 views
5


C++ Object Oriented Programming. C++ Classes and OOP. In the previous video we went over how to define a struct, add class data members, and methods to represent a Fraction. In this video, we will go over method chaining, which is a technique for invoking consecutive method calls. Member functions that return void, can return a reference to the object instead. The reference can then be used to call another method, which can also return a reference to the object. Hence, these method calls can be chained.

C++ OOP Playlist:
   • C++ Object Oriented Programming  

Beginner C++ Playlist:
   • C++ Programming Tutorial  

Github Repo for C++ OOP Code:
https://github.com/ImKennyYip/cpp-oop

Install C++ with VS Code:
   • How to set up C++ in Visual Studio Code  

Subscribe for more coding tutorials 😄 !

🌟 If you enjoyed the tutorial and would like to support the channel, you can do so here: https://buymeacoffee.com/kennyyipcoding