C# Conception - Hide inherited members and functions

Hey everyone,

I have a C# conception question. I have a class that inherit from MonoBehaviour but when you get the object I don’t want that the other classes access MonoBehaviour properties.

I don’t want to expose the features of the inherited MonoBehaviour class but I want to be able to use them (Update, Start, GetComponent, etc.) inside my inherited class but not from outside.

Is it possible ?

Thanks a lot.

Here you can find some interesting references:

As I said, the best way would be to use Interfaces, so you can expose only what’s from your interest to other classes.
This way, instead of having pointers to your MonoBehavior class, you’ll have pointers to the interfaces your MonoBehavior class is implementing.