Call a method from a declaration
my question is kinda simple but I haven't found it over here. I always find my answers over here and now I probably can't find a good match to set my search terms..

I got the following code:

    Business businessClass = new Business();
    Entity entityName = new Entity();
    
    entityName = businessClass.find(object);


There is anyway to call the "find" method the of businessClass in the declaration of the entity ?

I don't know if it's better or worse but, seems to make more sense.

Thanks for your help. You guys are great ! I learn a lot with you all.
Call a method from a declaration
===

my question is kinda simple but I haven't found it over here. I always find my answers over here and now I probably can't find a good match to set my search terms..

I got the following code:

    Business businessClass = new Business();
    Entity entityName = new Entity();
    
    entityName = businessClass.find(object);


There is anyway to call the "find" method the of businessClass in the declaration of the entity ?

I don't know if it's better or worse but, seems to make more sense.

Thanks for your help. You guys are great ! I learn a lot with you all.