how to see class driven out of class in inspector?

using UnityEngine;
using System.Collections;

public class Script : MonoBehaviour {
	public int Class1 = 0;
	[System.Serializable]
	public class ClassA : Script{
		public int ClassA1 = 0;
	}
}
[System.Serializable]
public class ClassB : Script{
	public int ClassB1 = 0;
}

all I see is only:

Class1 = 0;

how to see ClassA & B? in inspector?

using debug or normal view doesn’t help

You can’t see classes in the inspector… only fields of that type.

And you don’t need to derive from MonoBehaviour just to hold some data - in fact, that’s a bad idea.

using UnityEngine;
using System.Collections;
 
public class Script : MonoBehaviour {
   public int Class1 = 0;
   public ClassA myA;
}

[System.Serializable]
public class ClassA{
   public int ClassA1 = 0;
}