Please show me a simple code with class name as return type in a method?Some of the codings in project as classname as return type for methods?I don't understand What that mean?
Can anyone give me a breif explanation and simple example regarding that one?
public Dataset getEmployees()
in the above code we are using (Dataset)(It's basically a class) but here we are using as return type for getEmployees method.
I want the same as example.Instead of Dataset,user defined class should be as return type.I hope you understand what my doubt is.