how can i use a function in base class

public abstract class example : MonoBehaviour
{
//this is not my base class. this is an example
public GameObject Object;

	public void function()
	{
		Instantiate(Object);
	}
}
  
public class user : example//base class been used
{
	//how can i use the function in base class
}

can i use a function in a base class?
or there is another way that similer to this?

Just call “function” whenever you want, it’s public so it’s inherithed by the user class. If by “use the function” you mean something different than calling it, please be more specific. If you already tried calling the function and it didn’t compile, copy the error message here.