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

Initiation à la POO

Initiation à la POO

Support de cours (OB100)

Avatar for Clément Sauvage

Clément Sauvage

February 11, 2017
Tweet

More Decks by Clément Sauvage

Other Decks in Programming

Transcript

  1. OOP 101 Object Oriented Programming with JAVA 2 — ©

    Clément SAUVAGE - 2017 - clementsauvage.me
  2. But before starting... Who am I ? 6 — ©

    Clément SAUVAGE - 2017 - clementsauvage.me
  3. Clément SAUVAGE 26 years old Software engineer from #Lille @clementsauvage

    on Twitter & @clmntsvg on Instagram 7 — © Clément SAUVAGE - 2017 - clementsauvage.me
  4. & Also teacher, speaker, trainer, author That's why you have

    a lil' camera there (Hi Natasha ! (Only 20/30 min video)) 9 — © Clément SAUVAGE - 2017 - clementsauvage.me
  5. I ❤ and enjoy Swift I ❤ and enjoy Node

    & React 10 — © Clément SAUVAGE - 2017 - clementsauvage.me
  6. About this training session Monday to Wednesday : 9h30 ->

    12h30 13h30 -> 17h00 (Please be in time) 11 — © Clément SAUVAGE - 2017 - clementsauvage.me
  7. Slides (and not drawings) will be available on my speakerdeck

    board Code will be hosted on my Github account By the end of the training → Don't not hesitate to follow me to get future updates * 12 — © Clément SAUVAGE - 2017 - clementsauvage.me
  8. One question remains ! What about you ? Name, Job,

    Interest in programming, experience in it, and... What do you expect from this training session ! 13 — © Clément SAUVAGE - 2017 - clementsauvage.me
  9. Training Content Monday - History of programming (procedural vs. OOP

    ...) - History & Why JAVA & Installing the tools - OOP Basics & Concepts - Unified Modeling Language basics - Time to work ! 14 — © Clément SAUVAGE - 2017 - clementsauvage.me
  10. Training Content Tuesday - JAVA 101 - Our very first

    program - Primitives - Structural functions - OOP in details 15 — © Clément SAUVAGE - 2017 - clementsauvage.me
  11. Training Content Wednesday - More advances topic : Swing UI

    Library - Recap and exercices 16 — © Clément SAUVAGE - 2017 - clementsauvage.me
  12. Recap about JAVA & the JVM : Main idea :

    Write once, run everywhere 26 — © Clément SAUVAGE - 2017 - clementsauvage.me
  13. JDK : Java development kit The Java Development Kit (JDK)

    is an implementation of either one of the Java Platform, (...) released by Oracle Corporation in the form of a binary product aimed at Java developers on Solaris, Linux, Mac OS X or Windows. The JDK includes a private JVM and a few other resources to finish the development of a Java Application. 28 — © Clément SAUVAGE - 2017 - clementsauvage.me
  14. JRE : Java Runtime Environment The Java Runtime Environment is

    a software distribution containing a stand-alone Java VM, browser plugin, Java stdlib and a configuration tool. 29 — © Clément SAUVAGE - 2017 - clementsauvage.me
  15. Downloading & installing the tools All this stuff is available

    freely on Oracle (& Java website) 30 — © Clément SAUVAGE - 2017 - clementsauvage.me
  16. Once downloaded and installed, please check everything is working properly

    by running java -version >java version "1.8.0_121" >Java(TM) SE Runtime Environment (build 1.8.0_121-b13) >Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode) 32 — © Clément SAUVAGE - 2017 - clementsauvage.me
  17. Where should we writing code ? As we are warrior

    we'll use 33 — © Clément SAUVAGE - 2017 - clementsauvage.me
  18. Let's create a project folder and then a Main.java file

    mkdir helloWorld && vim main.java 34 — © Clément SAUVAGE - 2017 - clementsauvage.me
  19. Let's write our fundamental Hello, World ! public class Main

    { public static void main(String[] args) { System.out.println("Hello World"); } } 35 — © Clément SAUVAGE - 2017 - clementsauvage.me
  20. Then, let's compile it and run it ! javac Main.java

    javac is the command for Java compiler When running ls we shall see a main.jar file 36 — © Clément SAUVAGE - 2017 - clementsauvage.me
  21. Enough of VIM ! Let's download a real tool :

    IntelliJ Idea, the most complete toolbelt for JAVA developers 38 — © Clément SAUVAGE - 2017 - clementsauvage.me