810:062 Computer Science II Dr. Schafer - PowerPoint PPT Presentation

1 / 15
About This Presentation
Title:

810:062 Computer Science II Dr. Schafer

Description:

810:062. Computer Science II. Dr. Schafer. Getting to know you. Mug Shots ... local variable. instance variable. constructor. access method. access modifier ... – PowerPoint PPT presentation

Number of Views:107
Avg rating:3.0/5.0
Slides: 16
Provided by: BenSc
Category:

less

Transcript and Presenter's Notes

Title: 810:062 Computer Science II Dr. Schafer


1
810062Computer Science IIDr. Schafer
2
Getting to know you
  • Mug Shots
  • Pull out a sheet of notebook paper and fold it in
    half the long way (so you make a hot dog bun
    not a hamburger bun).
  • Using one of the markers I will pass around,
    write your first name and last initial (or the
    name you would like to be called).
  • Info Sheet
  • Please complete the information sheet that I
    handed out.

3
Getting Started
  • I will hand you a syllabus.
  • Please make sure you read it by Wednesday and
    come prepared to ask questions.
  • But a few issues I want to highlight today..

4
Getting Started
  • Structure-wise CS II is a lot like CS I.
  • In-labs, PAs, Exams, participation
  • Rooms to know
  • ITTC 328, 316, 305, 335
  • WRT 112, 206, 339
  • Use of electronic devices during lecture is not
    allowed unless you are given instructions/permissi
    on otherwise.

5
How is CS II different from CS I?
  • CS I focuses on learning to program in the first
    place.
  • How do I use Java to write simple programs
    (although we mainly focused on individual
    methods).
  • CS II focuses on learning how to program well.
  • How do I use this concept of an object oriented
    language to craft complex yet flexible programs.

6
What will we cover this semester?
  • OO Design and Design Patterns
  • Programming at the command line
  • Using the command line
  • File and text manipulation
  • Testing and debugging
  • Graphical User Interfaces (GUIs)
  • Event-driven programming
  • Networks and sockets
  • Applets?

7
So what is OO programming?
  • We talked about the concept of OO programming
    fairly often in CS I.
  • So at this point in your career how would you
    answer this question?

8
Complete Activity 1 on In-class Activity sheet
  • Group 1
  • Gavin, Jessa, Ryan, Luke, Robert
  • Group 2
  • Alyssa, Ali, Chris, Sam
  • Group 3
  • Asad, Craig, Mohammed, Paul
  • Group 4
  • Dave, Alexandr, Sara, Nate

9
So what is OO programming?
10
So what is OO programming? Concept 1
  • The world
  • consists of objects
  • that interact
  • to solve a problem.
  • Object-oriented programming encourages us to
    think about the computer as a simulator of the
    world. Thus, a program is a map of the world we
    want to imitate.

11
So what is OO programming? Concept 1
  • Instead of asking
  • How can I write a program that is structured like
    the machine on which it runs?
  • We ask
  • How can I write a program that is structured like
    the part of the world it describes?

12
So what is OO programming? Concept 2
  • One of the founders of object-oriented
    programming was Kristen Nygaard. He and his
    colleague Ole Johann Dahl created the first OO
    language, Simula, in the 1960s. The central theme
    running through all of Nygaard's work is this
    syllogism
  • To describe is to understand.
  • To program is to describe.
  • To program is to understand.

13
The anatomy of an OO program
  • In Java, the main thing you do is write class
    definitions. (R. Morelli)
  • A class definition encapsulates two (three
    actually) things
  • Data (instance variables) (identity and state)
  • Actions (constructors and methods). (behavior)

14
The anatomy of an OO program
  • In Java, the main thing you do is write class
    definitions. (R. Morelli)
  • A class definition encapsulates two (three
    actually) things
  • Data (instance variables) (identity and state)
  • Actions (constructors and methods). (behavior)

Oh, yeah. Vocabulary! ?
15
Complete Activity 2 on In-class Activity sheet
Write a Comment
User Comments (0)
About PowerShow.com