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

Material Type: Notes; Class: Java; Subject: Computer Science; University: Drexel University; Term: Winter 2008;

Typology: Study notes

Pre 2010

Uploaded on 08/19/2009

koofers-user-bj9
koofers-user-bj9 🇺🇸

5

(1)

10 documents

1 / 63

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Introduction Course Information Object Oriented Concepts Operators & Control Statements Assignment 3
CS 190 - Java
Introduction to Java
Andy Mroczkowski
Department of Computer Science
Drexel University
January 28, 2008 / Lecture 2
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f

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)