Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Inheritance in ES6

class Inheritance extends Func {
  constructor(a, b, c) {
    super(a, b)

    this.c = c
  }

  getProduct() {
    return this.a * this.b * this.c
  }
}

let y = new Inheritance(3, 4, 5)
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Inheritance
ADD COMMENT
Topic
Name
5+7 =