Static and non-static(instance) methods
·
개발
1. Definition and Access static instance Belog to the class itself, not to instances of the class. e.g) call them on the class directly -> Classname.staticMethod() Belog to instances of the class. Need to create an object of the class to use these methods. e.g ) const obj = new ClassName(); obj.instanceMethod() 2. Use of 'this' keyword static instance Cannot use 'this' to refer to an instance of..