본문 바로가기 메뉴 바로가기

H0TSUN's BLOG

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

H0TSUN's BLOG

검색하기 폼
  • 분류 전체보기 (21)
    • Writing_practice (0)
    • MIPS (0)
    • C++ (0)
    • Algorithm (1)
    • Embeded system security (1)
    • Reversing (2)
    • Research.. (2)
    • Fuzzing (2)
    • Fwnable (4)
    • linux Basic (5)
    • scala (3)
  • 방명록

Scala (1)
[scala] - About Scala's apply() functions

scala 초보자들의 한가지 혼란스러운 점은, class는 new keyword 없이 만들어진다는 것이다.(ex: val p = person()) 이것은 특별한 함수 apply 덕분이다. -Apply Function Basics 간단한 apply의 사용 예는 object에 사용한 것이다. 이것은 object가 마치 object 그자체로 함수 인 것 처럼 call 할 수 있다. 출처: https://blog.matthewrathbone.com/2017/03/06/scala-object-apply-functions.html 4 Fun and Useful Things to Know about Scala's apply() functions Scala's apply functions are commonly see..

scala 2020. 3. 15. 20:59
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • Class
  • trait
  • apply
  • object
  • Scala
more
«   2025/05   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바