As I said yesterday, you need to learn the basics. In this case, it's called inheritance, and it's one of the fundamental pillars of OOPs:
Inheritance (object-oriented programming) - Wikipedia[
^]
Seriously, you need to learn the basics - you are wasting so much of your time asking about each individual bit of the language and still missing huge amounts because you haven't.