Return type is not missing in your sample. Your cr
method has return type, and it is Sample
.
Any of your custom class is type too, not only primitive types such as int
, string
and so on.
5
solved Can We Have Class Name Instead Of Return Type In c#? [closed]