Hello, I want to know that why we write empty function with a dot.
s0.empty( );
why we don’t write it as empty( s0);
Hello, I want to know that why we write empty function with a dot.
s0.empty( );
why we don’t write it as empty( s0);
hello @yashsharma4304
bro it needs some knowledge of classes and objects.
s0 is an object and empty is its member function .
to call any function of a class using object we use dot.
thats why so.empty()
Ok
. I understand it somewhat. Thank you.