Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

extend static class javascript

class A {
    static price = '8.99 PLN';
}

class B extends A {
   static price = '6.99 PLN';
}

console.log(A.price); //➞ '8.99 PLN'
console.log(B.price); //➞ '6.99 PLN'
 
PREVIOUS NEXT
Tagged: #extend #static #class #javascript
ADD COMMENT
Topic
Name
4+7 =