Question: Type Unit in Scala ..... O is used for singleton objects. O is equivalent to type void in C/C++/Java and it has no values. is
Type Unit in Scala ..... O is used for singleton objects. O is equivalent to type void in C/C++/Java and it has no values. is assigned automatically to all functions that return just one value. O is equivalent to type void in C/C++/Java and it has only one value, denoted (). serves no clear purpose
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
