Forcing a class to have an attribute

0

I'm doing a project and I need a parent class (inheritance) to force its daughters classes to have a certain attribute. Is it possible to do this?

    
asked by anonymous 26.09.2018 / 16:48

0 answers