[enh] handle class with empty ()
[enh] handling inheritance