Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Initiation à la POO
Search
Clément Sauvage
February 11, 2017
Programming
66
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Initiation à la POO
Support de cours (OB100)
Clément Sauvage
February 11, 2017
Transcript
44 slides
1 — © Clément SAUVAGE - 2017 - clementsauvage.me
OOP 101 Object Oriented Programming with JAVA 2 — ©
Clément SAUVAGE - 2017 - clementsauvage.me
Hello and Welcome 3 — © Clément SAUVAGE - 2017
- clementsauvage.me
4 — © Clément SAUVAGE - 2017 - clementsauvage.me
Just Joking 5 — © Clément SAUVAGE - 2017 -
clementsauvage.me
But before starting... Who am I ? 6 — ©
Clément SAUVAGE - 2017 - clementsauvage.me
Clément SAUVAGE 26 years old Software engineer from #Lille @clementsauvage
on Twitter & @clmntsvg on Instagram 7 — © Clément SAUVAGE - 2017 - clementsauvage.me
I'm also C.T.0's 8 — © Clément SAUVAGE - 2017
- clementsauvage.me
& 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
I ❤ and enjoy Swift I ❤ and enjoy Node
& React 10 — © Clément SAUVAGE - 2017 - clementsauvage.me
About this training session Monday to Wednesday : 9h30 ->
12h30 13h30 -> 17h00 (Please be in time) 11 — © Clément SAUVAGE - 2017 - clementsauvage.me
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
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
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
Training Content Tuesday - JAVA 101 - Our very first
program - Primitives - Structural functions - OOP in details 15 — © Clément SAUVAGE - 2017 - clementsauvage.me
Training Content Wednesday - More advances topic : Swing UI
Library - Recap and exercices 16 — © Clément SAUVAGE - 2017 - clementsauvage.me
Let's go ! 17 — © Clément SAUVAGE - 2017
- clementsauvage.me
Ole Johan Dahl 18 — © Clément SAUVAGE - 2017
- clementsauvage.me
Kristen Nygaard 19 — © Clément SAUVAGE - 2017 -
clementsauvage.me
20 — © Clément SAUVAGE - 2017 - clementsauvage.me
21 — © Clément SAUVAGE - 2017 - clementsauvage.me
22 — © Clément SAUVAGE - 2017 - clementsauvage.me
UML : Unified Modeling Language 23 — © Clément SAUVAGE
- 2017 - clementsauvage.me
24 — © Clément SAUVAGE - 2017 - clementsauvage.me
Day 2 : Let's Code 25 — © Clément SAUVAGE
- 2017 - clementsauvage.me
Recap about JAVA & the JVM : Main idea :
Write once, run everywhere 26 — © Clément SAUVAGE - 2017 - clementsauvage.me
Tools JDK & JRE 27 — © Clément SAUVAGE -
2017 - clementsauvage.me
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
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
Downloading & installing the tools All this stuff is available
freely on Oracle (& Java website) 30 — © Clément SAUVAGE - 2017 - clementsauvage.me
31 — © Clément SAUVAGE - 2017 - clementsauvage.me
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
Where should we writing code ? As we are warrior
we'll use 33 — © Clément SAUVAGE - 2017 - clementsauvage.me
Let's create a project folder and then a Main.java file
mkdir helloWorld && vim main.java 34 — © Clément SAUVAGE - 2017 - clementsauvage.me
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
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
OOP Concepts 37 — © Clément SAUVAGE - 2017 -
clementsauvage.me
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
Demo Time 39 — © Clément SAUVAGE - 2017 -
clementsauvage.me
OOP Concepts 40 — © Clément SAUVAGE - 2017 -
clementsauvage.me
Inheritance 41 — © Clément SAUVAGE - 2017 - clementsauvage.me
Polymorphism 42 — © Clément SAUVAGE - 2017 - clementsauvage.me
Encapsulation 43 — © Clément SAUVAGE - 2017 - clementsauvage.me
Hands on code 44 — © Clément SAUVAGE - 2017
- clementsauvage.me
More Decks by Clément Sauvage
See All by Clément Sauvage
The receipe... to build a great iOS App
csauvage
0
26
Bienvenue chez les Ch'tis : How to nuture entrepreneurship in region
csauvage
0
61
Les Tontons @ Vivatechnology 2018
csauvage
0
53
AltConf 2017 - Creating an app for a presidential election
csauvage
0
1.3k
Core Animator - Animation in iOS & OS X painlessly
csauvage
2
5.3k
Story of an iBeacon - Cocoaheads Paris 01/15
csauvage
0
230
Realm.io - The brand new database for mobile apps
csauvage
2
280
Déjeuners Technologiques - Université de Lille 1
csauvage
1
88
CocoaHeads Lille Sept 2013 - Back to school
csauvage
0
290
Other Decks in Programming
See All in Programming
Lean で手続き的プログラム の証明が書けるようになった
inoueasei
9
4.7k
JavaScriptはシングルバイナリの夢を見るか / Does JavaScript Dream of a Single Binary?
ssssota
0
650
高橋メソッドでCVE解説シリーズ 〜CVE-2026-112816〜
hakkadaikon
0
280
はじめてのKubernetesコントリビューション
nasa9084
0
330
protojson における文字化けの扱い
kazuki1023
0
470
Stage 3でも仕様は変わる。アプリケーション開発者のためのTC39プロセスの読み方
bicstone
1
560
Materialが消えた日 〜真っ白なFlutterキャンバスにRenderObjectで絵を描く〜
umigishiaoi
0
170
Going Full Circle with Virtual Graphs and Relational Databases
michaelsimons
1
120
Engineering Biometric UX Across Android Versions | DroidKnights 2026
ryunen344
1
220
AIが実装を担う時代の「技術設計」と「チームマネジメント」
kamina_zzz
2
460
仕様駆動開発入門 (何を作るかを先に決めて渡す) | 目指せ Kiro マスター 05
inariku
PRO
3
240
Crash Auto Pipelines
veronikapj
1
450
Featured
See All Featured
AI: The stuff that nobody shows you
jnunemaker
PRO
12
1.3k
First, design no harm
axbom
PRO
2
1.4k
New Earth Scene 8
popppiees
5
2.9k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
620
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
31k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
Visualization
eitanlees
153
17k
Git: the NoSQL Database
bkeepers
PRO
433
67k
Large-scale JavaScript Application Architecture
addyosmani
516
110k
エンジニアに許された特別な時間の終わり
watany
109
250k
Intergalactic Javascript Robots from Outer Space
tanoku
273
28k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
650