How To Implement Method Chaining | C++ Tutorial

preview_player
Показать описание

Interesting Method Chaining Research Paper: "An Empirical Study of Method Chaining in Java"

Рекомендации по теме
Комментарии
Автор

I am watching these videos to learn C++ OOP, but I am learning even more. Thank you very much.

ieduardoms
Автор

This saved me. You explain concepts so clearly. Thank you so much!!

theea
Автор

Hey awesome video! I finally got it. Just to confirm, does the & after Rectangle in function definition(Rectangle&) signify that the return type of this particular function is a pointer reference or address!?

atharvarai
Автор

3:16 my timestamp to implement method chaining

ARANDOMOPENAIUSER
Автор

( c++ 101 perspective) In a normal getter method you don't return the class object, it would just be something like ` int getLength(){ return length ; } `
What is the purpose of returning a reference to a whole class instance `Rectangle&` ? Also this example would be much more practically helpful example if the member data was private as is more common.

mytech
Автор

the function returns the current object, so why we have to add '&'(address of the object) on the function return type?

shafayet
Автор

rectangle is somewhat dull why not implementing exiting classes...

didiTchu
Автор

which c++ compiler are you using on mac?

muhammadbasim