ch1 Oop
ch1 Oop
University of Buea
Faculty of Engineering and Technology
Department of Computer Engineering Prerequisite
The main objectives of this course, you will be able to: Chapter 1: Introduction to Object Oriented Programming (OOP)- Reminders
• Understand the basic concepts and terminology of object technology • Introduction
• investigates object-oriented paradigm including Object Oriented • Object-Oriented Terminology
Programming (OOP), Analysis and Design, and use these programming • Object-Oriented Concepts (Encapsulation, Abstraction,
schemes with the Java and C++ programming languages to build “good” Inheritance, Polymorphism)
programs. • Object-Oriented Analysis and Design
Analysis models
• Efficiently use object-oriented features such as encapsulation, information
Design models
hiding, inheritance and polymorphism throw programming exercises.
• Exercise: From class diagram to code
5 6
Chapter 2: Overview of Java Language Chapter 3: Overview of C++ Language (M. TIYDZE)
• Introduction • Introduction
• Java Basics (data types, keywords, comments, expressions, operators etc.) • C++ Basics
• Conditional Statements, Loops and Arrays • Conditional Statements, Loops and Arrays
• Classes and Objects in Java (new, constructor, attributes, methods, • Classes and Objects in C++ (new, constructor, destructor, attributes,
creating classes and objects) methods, creating classes and objects, Pointers to Objects)
• Packages and interfaces • OOP and C++ Programming Language
• The Java API Documentation
• OOP and Java Programming Language
7 8
9 10
Chapter 5: Lab tutorials, General revision and projects evaluation in C++ (M. TIYDZE) Chapter 6: Graphical user interface (GUI) in java (Lab)
Chapter 7: Connection to the database: case study of Postgresql (Lab)
• Lab tutorials Chapter 8: Handling Exceptions (Lab)
• General revision
• Projects evaluation (CA examination - end of C++)
11 12
Software requirement for Java: The IDE Software requirement for Java: JDK or JRE
Java requires two main tools to run: • JRE (Java Runtime), which include a Java Virtual Machine (JVM) and core
libraries, is needed for running Java programs.
IDE and
• JDK (Java Development Kit), which includes JRE plus the development tools
“JDK” or “JRE”, and (such as compiler and debugger), is need for developing and running Java
programs. In other words, JRE is a subset of JDK.
• IDE stands for Integrated Development Environment. • Since you are supposed to write Java Programs instead of merely running Java
programs, you should install JDK, which includes JRE.
• There are numerous IDE out there that can be used to program. Choose the • Advice: install jdk-15 or the version beyond (it is easier)
one you like and install it (Eclipse, visual studio, code block, Netbeans or a
framework etc. )
PS: BE CAREFUL WITH THE REQUIREMENT VERSIONS OF YOUR IDE WHEN CHOOSING YOUR
• The installation of an IDE requires the prior installation of a “JDK” or a “JRE” JDK!!!
e.g: Netbeans 8.2 does not work with jdk > 8 – “java Se 8” is instead required
(in case of any troubles, internet and/or AI will always be your friend.)
13 14
Requirement for the tutorial on class diagram: StarUML: The interface and homework
UML software
There are many UML software. Choose yours and install it Homework
1. Install your UML software
Open source software Proprietary software (starUML in my case)
2. Install the java extension
in the app
3. Realise the class diagram
we did during the tutorial.
15 16
References
17