How can I simulate class inheritance in JavaScript based on the given public class example

welcome to shbcf.ru