Semester 5 · AI · MI · CPGE · ENSA · EST · FSR · FST
Object-Oriented Programming with Java
Learn OOP with Java: classes, objects, constructors, encapsulation, inheritance, polymorphism, interfaces and generics, with solved exercises and lab sessions.
About this course
This course teaches you to think and code in objects with Java. Every concept is explained with simple examples, then applied in exercise sessions (TD) and lab sessions (TP) close to real projects. What you'll learn: • Introduction to Java and object-oriented programming • Creating a class and objects • Input and output: Scanner and printf • Constructors • Encapsulation • Inheritance and polymorphism • Interfaces • Generics Practice: • Exercise sessions: polynomials with rational coefficients, bank accounts (Account and Branch)… • Lab sessions: food products and stock management, employees and a registry with LinkedList… 16 videos · Solved lessons, exercises and labs
Before you start
No Java experience needed, but knowing programming basics (variables, conditions, loops, functions) helps a lot. Get ready: • The JDK (version 17 or later) • An editor: IntelliJ IDEA Community, Eclipse, or VS Code with the Java extension Tip: write and run every example yourself, then try the exercises and labs before watching the solution.
What you will learn
5 chapters · 16 lessons · 10 h 6 min
01Getting Started with Java and OOP
- Introduction to Java and OOPFree15 min
- Creating a Class and ObjectsFree20 min
- Input and Output: Scanner and printfFree14 min
02Practice: Arrays, Strings and Files
- TD1: Array Functions and Merge SortLocked1 h 9 min
- TP1: Random Characters, Strings and FilesLocked55 min
03Constructors and Encapsulation
- ConstructorsLocked18 min
- EncapsulationLocked11 min
- TD2: The Rational ClassLocked1 h 1 min
- TP2: The Date, Person and Booklet ClassesLocked1 h 7 min
04Inheritance, Polymorphism and Interfaces
- Inheritance and PolymorphismLocked26 min
- InterfacesLocked35 min
- TD3: Polynomials with Rational CoefficientsLocked1 h 1 min
05Generics and Linked Lists
- GenericsLocked17 min
- TD4: Bank Accounts, Account and BranchLocked1 h 1 min
- TP3: Food Products and Stock (LinkedList)Locked32 min
- TP4: Employees and Registry (LinkedList)Locked45 min