It seems queue.size()
can also be written as queue.size
and it also works. Is there any difference?
Does that mean that all functions and tasks can be used w/o parenthesis?
It seems queue.size()
can also be written as queue.size
and it also works. Is there any difference?
Does that mean that all functions and tasks can be used w/o parenthesis?
Are the same thing.
size
is a function to know the queue dimension. You can write with parenthesis and without them.
If you have a function without parameter you can ignore parenthesis (your case about size function)