일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Excel
- array
- Tkinter
- math
- hive
- matplotlib
- dataframe
- PANDAS
- Redshift
- c#
- Github
- Google Excel
- numpy
- Mac
- Python
- SQL
- Kotlin
- gas
- google apps script
- Java
- PySpark
- django
- GIT
- Google Spreadsheet
- Apache
- list
- 파이썬
- string
- PostgreSQL
- Today
- Total
목록분류 전체보기 (832)
달나라 노트
C#의 기본적인 구문과 텍스트를 표시하는 방식은 아래와 같습니다. using System; class MyProgram { static void Main() { Console.WriteLine("Hello World!"); } } -- Result Hello World! Hello World!라는 텍스트를 출력하는 코드입니다. Java를 아시는 분이라면 위 C# 코드를 봤을 때 Java와 굉장히 비슷하다고 생각될겁니다. 맞습니다. C#은 Java와 비슷합니다. using System; System이라는 namesapce를 이용하겠다는 의미입니다. 이해하기 쉽게 Python으로 대체해서 설명하자면 import sys 와 같이 어떤 기능을 가진 라이브러리를 import하는 부분이라고 이해하면 됩니다. cla..
C#의 class에도 상속(Inheritance)이라는 개념이 있습니다. 상속은 어떤 class를 다른 class에 상속하게되는데 상속이라는 개념을 아주아주 심플하게 설명하면 다음과 같습니다. "내 class에 없는 내용을 다른 class로부터 복사해온다." 다음 코드를 보시죠. using System; public class Dog { public string name = "Dog"; public void hello() { Console.WriteLine("Dog Hello!"); } } public class Cat : Dog { } class MyProgram { static void Main() { Cat test_cat = new Cat(); Console.WriteLine(test_cat.na..
class 관련 내용 얘기를 할 때 Access Modifier에 대해 얘기를 했습니다. Access Modifier 관련 내용 https://cosmosproject.tistory.com/543 https://www.w3schools.com/cs/cs_access_modifiers.php C# Access Modifiers W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more. www.w3schools.com..
Class의 생성자(Constructor)라는 것을 알아봅시다. using System; public class my_test { public string color; public string size; public my_test(string c, string s) { color = c; size = s; } } class MyProgram { static void Main() { my_test test_obj = new my_test(); string color_info = test_obj.color; string size_info = test_obj.size; Console.WriteLine(color_info); Console.WriteLine(size_info); } } 위 코드를 실행하면 에러가..