As long as the code for such functions is short and simple like the getters and setters and it doesnt clutter the class definition (I.e. the meaning and the point of the class should still be visible) then it is generally good practice to define them inside the class.
Got it. Thanks
@𝑺𝒐𝒃𝒌𝒂
Anonymous
Ehsan
Puspam
V01D
Kanni
Gulshan
Vlad
Manav
Abdulaziz
Pavel