Welcome to CSE 131 This is a very short exercise that you do as part of Lab 0 Review the following slides to learn the anatomy of a Java class program.

Slides:



Advertisements
Similar presentations
Statements and Questions By Tracie Kile 3 rd grade.
Advertisements

13-Jun-14 OOP features of Jeroo. Overview In this presentation we will discuss these topics: OOP terminology Jeroo syntax constructors methods.
ABNIAC The following slide presentation is to acquaint the student with ABNIAC. The version used for presentation is the Java version, which can be found.
Welcome to Jeff’s baseball game! Here is how to play. You are asked a math question and you have to get it right or you will repeat the question until.
Batter Up! To play, click the presentation button.
Slides prepared by Rose Williams, Binghamton University Chapter 17 Swing I.
Signature. What do you think they are? Added to all s and can include – Name – Job title – Logo – Telephone number.
S A B D C T = 0 S gets message from above and sends messages to A, C and D S.
26-Jun-15 Methods. About methods A method is a named group of declarations and statements If a method is in the same class, you execute those declarations.
Slides prepared by Rose Williams, Binghamton University Chapter 9 More Exception Handling.
CSE 115 Week 6 February , Announcements Software Installation Fest – Take 2 Software Installation Fest – Take 2 –Tuesday 2/ –Wednesday.
Communication/Grade/ Session 3 of y Attachments in eChalk .
WELCOME TO AD POST JOBS. INSTRUCTIONS HOW TO POST FREE ADS ON INTERNET.
©2015 Paul Read 7.3 Writing Informal Letters in Part One /sizes/z/in/photostream/
Object Oriented Software Development
Cup Robotics An Introduction to Coding, Functions, and Parameters.
Chpter8: Using responsibly. Step 1: Keep personal to a minimum  Keep personal messages sent from your work account short and few in number,
WELCOME TO Online Ad Posting Work INSTRUCTIONS HOW TO POST FREE ADS ON INTERNET
Our Neighborhood at Work Unit 4 - Vocabulary Open Court Language Arts Grade One.
Welcome! The Topic For Today Is…Review for Test. Your Topic Basics of Programming Control Statements Programming Concepts InteractionAlice Concepts 200.
1 DA 117 Practice Management Communication and Telephone Skills.
CMSC 202 Exceptions. Aug 7, Error Handling In the ideal world, all errors would occur when your code is compiled. That won’t happen. Errors which.
By: Jack C.  The immune system doesn’t work directly to the sport of baseball, but it is big. You need to stay healthy to play the best level of ball.
CSE 486/586, Spring 2013 CSE 486/586 Distributed Systems Global States Steve Ko Computer Sciences and Engineering University at Buffalo.
dimaggio-damn-yankees-baseball/ html BASEBALL American’s ‘National Pasttime’
Baseball Quiz Question 1: How many outs are in a half an inning in Baseball A). 6 B). 3 C). 2 D). 5.
Unit 3: Socialization What is it? It’s all about PEOPLE.
Far away in a distant galaxy, there was a distant planet where lots of little robots lived and waited patiently for messages from.
I can be interdependent! “EVERYBODY CAN USE SOME HELP SOMETIMES.” “WE CAN RELY ON EACH OTHER FOR SUPPORT.” Being interdependent means:  I will work hard.
When it is appropriate to use and what are its advantages.
You could end up with a broken bone! Even though bones are very strong, sometimes accidents happen and bones break. Can you guess where this broken bone.
Program Flow LabVIEW Robotics Fundamentals. Unintuition You know what this program does… So what does this one do? Inserted code.
Questions Alice. Functionality A question receives value(s), performs some computation on the value(s), and returns (sends back) a value.
Welcome all to Week 9 Seminar! This week, we will discuss how behavior analysts, substance abuse counselors, and child development specialists use research.
Classes become Objects PropertiesCapabilitiesRelationships.
Work-Related Texts SPI Select the most appropriate format for writing a specific work-related text (i.e., instructions, directions, letters,
1 Web Search/Thinkin g It may not seem this way, but there are robots being used all around us all the time! What are some examples of everyday.
3-July-2002cse142-D2-Methods © 2002 University of Washington1 Methods CSE 142, Summer 2002 Computer Programming 1
Provided by OSPA ( Last Modified Nov 9, 2007 OPSEC and Children Presented by: (Presenter’s Name)
Python Programming Module 3 Functions Python Programming, 2/e1.
What it is and how to stop it.  What spam is.  Why it can be dangerous.  How to handle it.
Laura Duell EDR Fall  The Audience/The Crowd:Behaviorism Behaviorism focuses on observable changes in behavior. Behaviorism is the result.
Baseball basics By: Jillian DeBoer.
Getting To Know You With Games and Poems
Texas East Volunteer Umpire Association
Keep it private.
Scrolling text repeating until end of slide.
OOP features of Jeroo 8-Nov-18.
Building Java Programs
Lesson 2: Building Blocks of Programming
Same or Different? (C) 2016 by Exercise ETC Inc..
What’s the point of Snapchat and how does it work?
OPSEC and Children.
Android Topics What are Intents? Implicit Intents vs. Explicit Intents
CS288 Lab Exercise 2.
OPSEC and Children Presented by: (Presenter’s Name) Provided by OSPA (
Umpire training.
Is there ...?.
February 2 - 6, 2009 CSE 113 B.
Same or Different? (C) 2016 by Exercise ETC Inc..
Instructions can tell us how to do something or how to make something.
3.1.1 My body now: Names of parts of my body
OOP features of Jeroo 3-Jul-19.
CMSC 202 Exceptions.
Messages that need to be sent to communicate what needs to be communicated etcetera. Messages that need to be sent to communicate what needs to be communicated.
Iteration Learning Objective: to be able to design algorithms that use iteration.
My body now: Names of parts of my body
Name of Chapter Area of Chapter
My body now: Names of parts of my body
Presentation transcript:

Welcome to CSE 131 This is a very short exercise that you do as part of Lab 0 Review the following slides to learn the anatomy of a Java class program. There is an exercise for you to complete as part of Lab 0 to test your knowledge of these slides. You can repeat the exercise as many times as you need until you are able to recognize the different parts of a Java program.

Anatomy of a Java program 2 A Java program can have many packages. Each package contains a set of related classes. For example, a baseball package might have a Pitcher, Batter, and Scorekeeper class The name of this package is lab0

Anatomy of a Java program 3 A class describes the behaviors of an object. This class is called RobotInstructions It has just one kind of behavior which is to act Other objects have more behaviors For example, a Pitcher might throw a ball, catch a ball, etc.

Anatomy of a Java program 4 The behaviors in a class are divided into methods This method is named “act” A Pitcher might have a method to throw a ball, catch a ball, etc.

Anatomy of a Java program 5 For a method to do its job, it sometimes needs information You see here an “incoming parameter” – a “robot” that is provided to the “act” method. The act method can then issue instructions to the robot

Anatomy of a Java program 6 This line of code sends a message to an object to tell it to do something The object here is “robot” – it is the thing we are telling to do something The method call is “forward” – we are asking the robot to go forward This method call requires some information – how far forward should it go? The value of 100 is the outgoing parameter, sent to the forward method, addressed to the robot.