Upgrade to Pro — share decks privately, control downloads, hide ads and more …

kotlin season 1 - Part 8 Class - 2

TaeHwan
October 12, 2016

kotlin season 1 - Part 8 Class - 2

2016년 유데미 Kotlin 강의를 공개합니다.

영상 : https://www.youtube.com/watch?v=5Kas3E7_N4o

2회 분은 유데미에서 확인 가능합니다.
http://bit.ly/2UpaJUR

TaeHwan

October 12, 2016
Tweet

More Decks by TaeHwan

Other Decks in Education

Transcript

  1. Part 8 Kotlin Class - 2 Taehwan 1 ରࣁ؀ উ٘۽੉٘

    ѐߊ ঱য ௏ౣܽ, द੘ೞӝ thdev.tech, 2016
  2. ૑դ दрীח • ӝࠄ ௿ېझ • ࢤࢿ੗ • ௿ېझ ࢎਊೞӝ

    2 ରࣁ؀ উ٘۽੉٘ ѐߊ ঱য ௏ౣܽ, द੘ೞӝ thdev.tech, 2016
  3. য়ט਷ • Class ೣࣻ ੤੿੄ • abstract • interface •

    ׮઺ ࢚ࣘ 3 ରࣁ؀ উ٘۽੉٘ ѐߊ ঱য ௏ౣܽ, द੘ೞӝ thdev.tech, 2016
  4. ೣࣻ ੤੿੄ - Ѿۿ • Javaח ӝࠄ੸ਵ۽ ೣࣻ ੤੿੄ܳ ೲਊ

    7 ରࣁ؀ উ٘۽੉٘ ѐߊ ঱য ௏ౣܽ, द੘ೞӝ thdev.tech, 2016
  5. ೣࣻ ੤੿੄ - Ѿۿ • Javaח ӝࠄ੸ਵ۽ ೣࣻ ੤੿੄ܳ ೲਊ

    • ੤੿੄ܳ ݄ח ߑߨ : finalਸ ୶о(class৬ function খী) 8 ରࣁ؀ উ٘۽੉٘ ѐߊ ঱য ௏ౣܽ, द੘ೞӝ thdev.tech, 2016
  6. ೣࣻ ੤੿੄ ݄ӝ - java /* finalਸ ࠢੌ ҃਋ ௿ېझ

    ੤੿੄ ࠛо */ public /*final*/ class _03_Open { /* ೣࣻ ੤੿੄ оמ */ public void methodA() { System.out.println("methodA"); } // ೣࣻ ੤੿੄ ࠛоמ public final void methodB() { System.out.println("methodB"); } } 9 ରࣁ؀ উ٘۽੉٘ ѐߊ ঱য ௏ౣܽ, द੘ೞӝ thdev.tech, 2016
  7. ೣࣻ ੤੿੄ - Ѿۿ • Javaח ӝࠄ੸ਵ۽ ೣࣻ ੤੿੄ܳ ೲਊ

    • ੤੿੄ܳ ݄ח ߑߨ : finalਸ ୶о(class৬ function খী) • kotlin਷ ӝࠄ੸ਵ۽ ೣࣻ ੤੿੄ ࠛоמ 10 ରࣁ؀ উ٘۽੉٘ ѐߊ ঱য ௏ౣܽ, द੘ೞӝ thdev.tech, 2016
  8. ೣࣻ ੤੿੄ - Ѿۿ • Javaח ӝࠄ੸ਵ۽ ೣࣻ ੤੿੄ܳ ೲਊ

    • ੤੿੄ܳ ݄ח ߑߨ : finalਸ ୶о(class৬ function খী) • kotlin਷ ӝࠄ੸ਵ۽ ೣࣻ ੤੿੄ ࠛоמ • ੤੿੄ܳ ೲਊೞӝ ਤ೧ࢲ : open ఃਕ٘ܳ ࢎਊ(interfaceח ৘৻) 11 ରࣁ؀ উ٘۽੉٘ ѐߊ ঱য ௏ౣܽ, द੘ೞӝ thdev.tech, 2016
  9. ೣࣻ ੤੿੄ ೲਊೞӝ - kotlin /* ௿ېझ ੤੿੄ оמ */

    open class _03_Open { /* ೣࣻ ੤੿੄ оמ */ open fun methodA() {} /* ೣࣻ ੤੿੄ ࠛо */ fun methodB() { println("final method ...") } } 12 ରࣁ؀ উ٘۽੉٘ ѐߊ ঱য ௏ౣܽ, द੘ೞӝ thdev.tech, 2016
  10. abstract class - java public abstract class _01_Abstract { public

    String attributeA; public String attributeB = "AttributeB"; public abstract void methodA(); public String methodB() { return attributeA; } } 15 ରࣁ؀ উ٘۽੉٘ ѐߊ ঱য ௏ౣܽ, द੘ೞӝ thdev.tech, 2016
  11. abstract class - kotlin abstract class _01_Abstract { abstract var

    attributeA: String var attributeB: String = "AttributeB" abstract fun methodA() fun methodB(): String { return attributeA } } 16 ରࣁ؀ উ٘۽੉٘ ѐߊ ঱য ௏ౣܽ, द੘ೞӝ thdev.tech, 2016
  12. interface - java public interface _02_Interface { void methodA(); String

    methodB(); } 19 ରࣁ؀ উ٘۽੉٘ ѐߊ ঱য ௏ౣܽ, द੘ೞӝ thdev.tech, 2016
  13. interface - kotlin interface _02_Interface { fun methodA() fun methodB():

    String } 20 ରࣁ؀ উ٘۽੉٘ ѐߊ ঱য ௏ౣܽ, द੘ೞӝ thdev.tech, 2016
  14. interface - kotlin interface _02_Interface { // interfaceীࢲ ߸ࣻ ࢶ঱द

    final੉ ইפݴ, ҳഅ೧ঠ ೣ var attributeA: String var attributeB: String // interfaceীࢲ ೣࣻ ੿੄ оמ fun methodA() { println("methodA") } fun methodB(): String } 22 ରࣁ؀ উ٘۽੉٘ ѐߊ ঱য ௏ౣܽ, द੘ೞӝ thdev.tech, 2016
  15. ׮઺ ࢚ࣘ - java public class Multiple_Inheritance extends Parent implements

    Interface, Interface2 { // ... } 24 ରࣁ؀ উ٘۽੉٘ ѐߊ ঱য ௏ౣܽ, द੘ೞӝ thdev.tech, 2016
  16. ׮઺ ࢚ࣘ - kotlin class Multiple_Inheritance : Parent(), Interface, Interface2

    { // ... } 25 ରࣁ؀ উ٘۽੉٘ ѐߊ ঱য ௏ౣܽ, द੘ೞӝ thdev.tech, 2016
  17. ׮઺ ࢚ࣘ - kotlin • पઁ ௏٘۽ ࢸݺ 26 ରࣁ؀

    উ٘۽੉٘ ѐߊ ঱য ௏ౣܽ, द੘ೞӝ thdev.tech, 2016
  18. ׮਺਷ • పझ౟ ௏٘ܳ ਤೠ MVP • ӝࠄ੸ੋ MVC৬ Androidীࢲ

    ࢎਊೞח MVC ࣗѐ 28 ରࣁ؀ উ٘۽੉٘ ѐߊ ঱য ௏ౣܽ, द੘ೞӝ thdev.tech, 2016