CS100J 11 September 2003 Course Management System for CS100J is now populated with students who were pre-registered. Look at course web page to see how.

Slides:



Advertisements
Similar presentations
1 For more info: CS Sep 2008 In 1968, the Defense Department hired Bolt Beranek and Newman (BBN) of Boston to.
Advertisements

1 CS100J. Lecture 2, 25 January 2007 Today’s topic: Objects and classes Reading for this lecture: Section 1.3. It’s most important that you study this.
CS100J Today’s topic: Objects and classes Reading for this lecture: Section 1.3 PLive: Activities 3-3.1, 3-3.2, (not 3-3.3), 3-4.1, Summary.
1 CS Sept. Customizing a class & testing Quiz 2 on Tuesday 15 Sept Purpose of a constructor (slide 5) Evaluating a new expression (slide 6) Fields;
Lecture 2 Introduction to C Programming
Introduction to C Programming
 2000 Prentice Hall, Inc. All rights reserved. Chapter 2 - Introduction to C Programming Outline 2.1Introduction 2.2A Simple C Program: Printing a Line.
1 CS100J 1 February Customizing a class & testing Quote for the day: There is no reason anyone would want a computer in their home. - -Ken Olson,
0 CS100J September 2007 CS100J: 12 weeks programming using Java, 2 using Matlab. David Gries. CS100M: 7 weeks of Matlab and 7 of Java. Daisy Fan. CS100H:
CS100J CS100M is in Kimball Bll. Course Management System for CS100J is now populated with students who were pre-registered. Look at course web page to.
CS100J 11 September 2003 For more info: The "at" was made famous by Ray Tomlinson, a researcher at BBN in Boston.
Computer Science: A Structured Programming Approach Using C1 Objectives ❏ To understand the structure of a C-language program. ❏ To write your first C.
1 CS100J 30 January 2007 The class definition Course Management System (CMS) for CS100J is populated with students who were pre-registered. Look at course.
Introduction to C Programming
CSC 160 Computer Programming for Non-Majors Lecture #3a: Stepper, Words, Sentences Prof. Adam M. Wittenstein
1 CS100J 05 February 2005 Today’s topic: Customizing a class (continued) Quiz 1 is today Quiz 2 is next Tuesday Quote for the day: There is no reason anyone.
Database Design Concepts Info 1408 Lecture 2 An Introduction to Data Storage.
COMP 14: Primitive Data and Objects May 24, 2000 Nick Vallidis.
1 CS1130 Spring 2011: David Gries & Walker White Transition to Object-Oriented Programming Assumes programming knowledge in a language like Matlab, C,
CH1 – A 1 st Program Using C#. Program Set of instructions which tell a computer what to do. Machine Language Basic language computers use to control.
Quote for the day: Computational thinking: a fundamental skill for everyone … [It] is … choosing an appropriate representation for a problem or modeling.
Object Oriented Software Development
A First Program Using C#
C++ / G4MICE Course Session 3 Introduction to Classes Pointers and References Makefiles Standard Template Library.
Quote for the day: Computational thinking: a fundamental skill for everyone … [It] is … choosing an appropriate representation for a problem or modeling.
1 CS Sept 2010 Customizing a class Quote for the day: I have traveled the length and breadth of this country and talked with the best people, and.
CS100J 09 September 2003 Course Management System for CS100J is now populated with students who were pre-registered. Look at course web page to see how.
Computer Vocabulary Acceptable Use Policy conduct expected from someone using a computer.
CS100J Spring 2006 CS100J: 11 weeks of programming using Java and 2 weeks using Matlab. David Gries is teaching CS100J. Graeme Bailey is teaching a special.
Classes CS 21a: Introduction to Computing I First Semester,
Chapter 1 Object Orientation: Objects and Classes.
0 Teaching Java —with OO first David Gries Computer Science Cornell University Ithaca, NY
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter 2 Chapter 2 - Introduction to C Programming.
CS/ENGRD 2110 SPRING 2012 Lecture 2: Objects and classes in Java 1.
CS1110 lecture 5 8 Feb 2010 Testing; class Object; toString; static variables/methods Reading for this lecture: Testing with JUnit (Appendix I.2.4 & pp.
1 CS1110 lecture 4 9 Sept. Customizing a class & testing Classes: fields; getter & setter methods. Secs (p. 45) & 3.1 (pp. 105–110 only) Constructors.
Spring 2005, Gülcihan Özdemir Dağ Lecture 6, Page 1 BIL104E: Introduction to Scientific and Engineering Computing, Spring Lecture 6 Outline 6.1Introduction.
1 CS1100 Fall Instructor: David Gries CS100M: Matlab No prior programming experience One semester of calculus Math & engineering type problems CS100J:
What is Programming? Computer programming is about telling the computer what it is we want it to do We tell the computer what we want it to do by sending.
Java Classes Chapter 1. 2 Chapter Contents Objects and Classes Using Methods in a Java Class References and Aliases Arguments and Parameters Defining.
1 CS100J 08 September 2005 Today’s topic: Customizing a class (continued) Quote for the day: There is no reason anyone would want a computer in their home.
Putting Things in Perspective: Selective Quotes. “640K ought to be enough for anyone.” Bill Gates, 1981.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Chapter 2 - Introduction to C Programming Outline.
Variables and Strings. Variables  When we are writing programs, we will frequently have to remember a value for later use  We will want to give this.
1 CS1110. Lecture 2, 28 Jan Objects & classes PLive: Activities 3-3.1, 3-3.2, (not 3-3.3), 3-4.1, Summary of lectures: On course page,
CS 106 Introduction to Computer Science I 09 / 10 / 2007 Instructor: Michael Eckmann.
1 CS100J Spring Instructor: David Gries CS100M: Matlab No prior programming experience One semester of calculus Math & engineering type problems.
1 Types of Programming Language (1) Three types of programming languages 1.Machine languages Strings of numbers giving machine specific instructions Example:
1 CS Sept 2010 Customizing a class Quote for the day: I have traveled the length and breadth of this country and talked with the best people, and.
Database (Microsoft Access). Database A database is an organized collection of related data about a specific topic or purpose. Examples of databases include:
Chapter 1 Object Orientation: Objects and Classes.
1 CS Sept Customizing a class & testing Quote for the day: There is no reason anyone would want a computer in their home. - -Ken Olson, founder.
1 Lecture 2 - Introduction to C Programming Outline 2.1Introduction 2.2A Simple C Program: Printing a Line of Text 2.3Another Simple C Program: Adding.
Andrew(amwallis) Classes!
CS Feb 2010 Customizing a class
Topic: Python’s building blocks -> Variables, Values, and Types
CS100J. Lecture 2, 24 September Objects & classes
Computational Thinking
Admin: Searching for a reservation Viewing the Trip Folder.
Computational Thinking
HTML Forms and User Input
Introduction to the C Language
CS 1430: Programming in C++ Turn in your Quiz1-2 No time to cover HiC.
Admin: Searching for a reservation Viewing the Trip Folder.
CS 1110 Please do this now. Draw three variables on a piece of paper as shown to the right: b 4 c 7 d false Below is a “program” consisting of 3 assignment.
CS100J 06 September 2005 The class definition
CS100J CS100M is in Kimball Bll.
Tutorial 10: Programming with javascript
Classes CS 21a: Introduction to Computing I
CS Feb 2011 Customizing a class
Presentation transcript:

CS100J 11 September 2003 Course Management System for CS100J is now populated with students who were pre-registered. Look at course web page to see how to get to it and what to do if you are not in it. Consider changing your section to a less crowded one! Some sections are overly crowded. Others are 1/3 full. Tuesday 10:10 section is canceled. Today’s topic: Customizing a class (continued) Quote for the day: There is no reason anyone would want a computer in their home. --Ken Olson, president, chairman and founder of Digital Equipment Corp., 1977

CS100J 09 September 2003 ABOUT THE COURSE TEXT If you cannot find the course material for CS100J on the Text Shelves in the Cornell bookstore, Order a Reprint at the Book Information Desk. It will be printed within 2 business days, and you will be ed as soon as it is available. (Some are returned daily.)

CS100J 09 September 2003 QUIZ on Tuesday. See “Key Concepts” at end of Section Class Instance or object or manilla folder Component: field and method Procedure, function, constructor New-expression Class as a type null

CS100J 09 September 2003 Answers to previous. A type is a set of values together with operations on them. A variable is a name with associated value or A variable is a named box, with a value in the box

CS100J 09 September 2003 These answers are WRONG type is the type of a variable that it is, e.g. int, double. Each type is different and good for certain purposes. Tells computer how variable is stored. Variable: something that is stored in the computers memory. It can be changed. e.g. int x= 5. x is a variable.

CS100J 09 September 2003 These answers are WRONG type is the type of a data ?, such as float or int, and it carries different amounts of info. Variable: a value stored in the computer that can be changed.

CS100J 09 September 2003 These answers are WRONG type The kind or form of a variable. For example, “Hello” is a String and 5.0 is type double. Variable: Something (usually a letter or word) that holds information or provides access to an internal name the computer gives to an object.

CS100J Reading for this lecture: Section 1.5 and 1.6. Read all the “style notes”, too. Summary of lectures: On course home page, click on “Handouts” and then “Outline of lectures held so far”. Today: Add a field to a class definition. Introduce the value null.

A class is a file-drawer. Contents: manila folders. Bill Patient name “B. Clinton” address “New York” owes $ getName() deposit(double d) (1)unique name on tab of manila folder. (2)manila folder, instance, object of the class (3)fields (they are variables) (4)methods (procedures and functions): instructions to do tasks

/** description of what the class is for */ public class subclass-name extends superclass-name { declarations of methods } a0 super-class-name subclass-name methods and fields inherited from superclass-name methods and fields declared in subclass-name folder belongs in file drawer for class subclass-name