How to create classes that can be instantiated from other notebooks?

Alex79
New Contributor II

Hi,

I am familiar with object oriented programming and cannot really get my head around the philosophy of coding in Databricks. My approach that naturally consists in creating classes and instantiating objects does not seem to be the right one.

Can someone explain to me how Databricks is expected to be used, and if this is possible to do so, then how to create a simple 'foo' class that I can instantiate outside of its notebook definition?

 

Thanks -