Edit custom class in inspector

Is it possible to see custom classes in the editor: but that inherit from a custom class?
for example in my mono behaviour script I have:

IBaseClass myClass;

// for example in start:
myClass = new InheritingClass;

How would I edit public fields of myClass from the editor?

The solution was SerializeReference: