Technology

How to implement Inheritance in js2

We are assuming that you have installed js2 in your system, in case if you have not installed js2, first install js2. First of all create a InheritanceTest.js2 file in scr directory with the content given below: [js] class Person { // Parent class var firstName; var lastName; function initialize(firstName, lastName)...

by Amit Kumar
Tag: inheritance
18-Feb-2013