use extends in class code example Example: class extends class className extends otherClassName{ // code }