var MyClass = function() {};//親クラス宣言?
MyClass.prototype = {
printTest : function() {//メソッド?
print("test");
}
};
var MySonClass = function() {};//子クラス宣言?
MySonClass.prototype = new MyClass();//継承?
MySonClass.prototype.name='MySon';//メンバ変数?
MySonClass.prototype.printName=function() {//メソッド?
print(this.name);
}
var myInstance = new MySonClass();
myInstance.printTest();
myInstance.printName();
dmFyIE15Q2xhc3MgPSBmdW5jdGlvbigpIHt9Oy8v6Kaq44Kv44Op44K55a6j6KiA77yfCk15Q2xhc3MucHJvdG90eXBlID0gewogIHByaW50VGVzdCA6IGZ1bmN0aW9uKCkgey8v44Oh44K944OD44OJ77yfCiAgICBwcmludCgidGVzdCIpOwogIH0KfTsKCnZhciBNeVNvbkNsYXNzID0gZnVuY3Rpb24oKSB7fTsvL+WtkOOCr+ODqeOCueWuo+iogO+8nwpNeVNvbkNsYXNzLnByb3RvdHlwZSA9IG5ldyBNeUNsYXNzKCk7Ly/ntpnmib/vvJ8KTXlTb25DbGFzcy5wcm90b3R5cGUubmFtZT0nTXlTb24nOy8v44Oh44Oz44OQ5aSJ5pWwPwpNeVNvbkNsYXNzLnByb3RvdHlwZS5wcmludE5hbWU9ZnVuY3Rpb24oKSB7Ly/jg6Hjgr3jg4Pjg4nvvJ8KIAlwcmludCh0aGlzLm5hbWUpOwp9CnZhciBteUluc3RhbmNlID0gbmV3IE15U29uQ2xhc3MoKTsKbXlJbnN0YW5jZS5wcmludFRlc3QoKTsKbXlJbnN0YW5jZS5wcmludE5hbWUoKTs=