반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- dataframe
- PostgreSQL
- Google Excel
- matplotlib
- numpy
- list
- Excel
- math
- c#
- Kotlin
- SQL
- Github
- array
- django
- 파이썬
- Google Spreadsheet
- Mac
- PySpark
- PANDAS
- string
- Java
- gas
- Python
- google apps script
- Apache
- GIT
- Tkinter
- hive
- Redshift
Archives
- Today
- Total
목록Overriding (1)
달나라 노트
Google Apps Script : method overwrite, method overriding, method 변경, method 덮어씌우기
Class를 어떤 변수에 할당하여 인스턴스화했을 때 이 객체는 Class가 가진 method와 동일한 기능을 가지는 method를 호출할 수 있게 됩니다. 근데 만약에 객체에서 method의 내용을 변경하고싶으면 어떻게해야할까요? 예시를 통해 봅시다. class Cat { constructor(name, age, weight, color) { this.name = name; this.age = age; this.weight = weight; this.color = color; this.species = 'mammal'; } sound() { Logger.log('Moew~'); } } function myFunction(){ var my_cat = new Cat(name='Kitty', age=5, we..
Google Apps Script
2022. 11. 28. 23:48