Docsity

Java Introduction: Object-Oriented Concepts & Control Statements, Study notes of Java Programming

Partial preview of the text

Download Java Introduction: Object-Oriented Concepts & Control Statements and more Study notes Java Programming in PDF only on Docsity!

CS 190 - Java

Introduction to Java

Andy Mroczkowski

[email protected]

Department of Computer Science

Drexel University

January 28, 2008 / Lecture 2

Outline

Introduction

Course Information

Basic Course Information

Schedule

Object Oriented Concepts

Key Concepts

An Example

Objects in Java

Inheritance & Polymorphism

Operators & Control Statements

Operators

Conditional Statements

Loops

Assignment 3

Welcome!

• Course materials adapted from Nadya Belov

Course Information

• Instructor

• Andy Mroczkowski

[email protected]

• Office Location: TBD

• Office Hours: TBD

• Course

• CS 190 - Java

• Web: www.cs.drexel.edu/˜uamroczk/cs

• Book: Thinking in Java, 4th Edition

• Previous edition available for free at

wwww.mindview.net/Books/TIJ/

  • Attendance & Lectures
    • Attendance is required
    • Lectures posted online prior to class
  • Tests & Quizzes
    • Midterm 2/
    • Final 3/
    • 2-3 Quizzes or in-class assignments
  • Assignments
    • 4-5 Assignments
    • (^) Must be turned in on-time
  • (^) Subject to change

Schedule^1

Jan 7 Course Overview, Introduction to Java

Jan 14 No Class (tentative)

Jan 21 No Class (University Holiday)

Jan 28 Object Oriented Concepts, Control Statements

Feb 4 Inheritance, Reuse, Abstraction, Classes, Interfaces

Feb 11 Scope, Public/Protected/Private, Java Exception Handling

Feb 18 Midterm, File I/O

Mar 3 Threading

Feb 25 Graphical User Interfaces (AWT, Swing)

Mar 10 Networking, Special Topics (Encryption, Reflection)

Mar 17 Final

1 Also subject to change

Key Concepts

• Information Hiding

• Encapsulation

• Re-use and Extensibility

Key Concepts

• Information Hiding

• Encapsulation

• Re-use and Extensibility

Information Hiding

• Coined by L. Parnas, On the Criteria to Be Used in

Decomposing System into Modules, 1977

Encapsulation

• Related to, but not synonymous with Information Hiding

So what is an Object?

A definition

• An object has a state, a set of behaviors and an identity.

• Grady Booch

An Example

An Example

• Identity (Type)

• State (Properties)

• Behaviors (Methods)

An Example

• Identity (Type)

• State (Properties)

• Behaviors (Methods)