Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript inheritance

function Teacher(first, last, age, gender, interests, subject) {
  Person.call(this, first, last, age, gender, interests);

  this.subject = subject;
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #inheritance
ADD COMMENT
Topic
Name
5+5 =