Pregunta de entrevista de SAP

Inheritance difference in java and c++