Extract interface/super?

when working with class diagrams can you generate, or “extract”, an interface or super class when working with an existing class?

Carlos