Preview

Java Programming

Good Essays
Open Document
Open Document
7939 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Java Programming
ISM 6259 - Fall, 2012

Business Programming
Fall, 2012 Lecture Notes

ISM 6259

©2012 by Dave Small, all rights reserved

This document and its contents may NOT be redistributed NOR posted online (in whole or in part) without Dave Small's specific written permission

-1-

Lecture 01

ISM 6259 — Lectures #1 — 201208.21
©2012 by Dave Small, all rights reserved

Welcome!
Hi, I’m Dave!

Characteristics of Object-Orientation Encapsulation grouping related ideas into a single unit that can be referred to by a single name ° Method (subroutine) encapsulates the steps of a process - saves human memory (chunking) - saves computer memory (don’t need to replicate code) ° Object-oriented encapsulation the packaging of operations and attributes (which represent state) into an object type so that an objects state will be accessed/modified only via the interface provided by the encapsulation.

Information/implementation hiding the use of encapsulation to restrict the visibility of certain information and implementation decision that are internal to the encapsulation structure. ° Methods - hide individual statements - hide local data ° Objects - private methods - instance variables Allows us to separate an abstraction from a(n internal) representation The type used for a method’s return value can differ from the type used to represent the value internally. ° ex: complex numbers - real & imaginary component (e.g., −23.4 + 4i) - rho (magnitude) & theta (angle) ← describe a vector As a ComplexNumber class client (i.e., user), I do not care which technique - 2 (1 / 5) it uses to represent the values internally, only that externally it appears to uses

- rho (magnitude) & theta (angle) ← describe a vector
Lecture 01

As a ComplexNumber class client (i.e., user), I do not care which technique it uses to represent the values internally, only that externally it appears to uses the technique I’m expecting. ° ex: a robot that moves orthogonally on the Cartesian

You May Also Find These Documents Helpful

  • Good Essays

    Pm3110 Unit 5 Lab Report

    • 343 Words
    • 2 Pages

    Why do you use a class instead of a structure? Are they interchangeable? Explain your answer.…

    • 343 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Java

    • 5076 Words
    • 21 Pages

    Explanation: B) Programs are classified as software to differentiate them from the mechanisms of the computer (hardware). Storage and the processor are two forms of hardware while input is the information that the program processes.…

    • 5076 Words
    • 21 Pages
    Good Essays
  • Good Essays

    Programming Homework

    • 366 Words
    • 2 Pages

    Write a program that would calculate and display the results for the multiplication table for values ranging from 1 to 100.…

    • 366 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    OOP Assigment 1 Sit 1

    • 4788 Words
    • 20 Pages

    Inheritance is when a class (subclass) has the same attributes and methods of another class (parent class); this is done by creating class from an existing class. While a subclass has properties derived for the parent class, it can also have properties of its own.…

    • 4788 Words
    • 20 Pages
    Powerful Essays
  • Good Essays

    Programming

    • 3038 Words
    • 13 Pages

    2. Each of the flowchart segments in Figure 3-35 is unstructured. Redraw each flowchart segment so that it does the same thing but is structured.…

    • 3038 Words
    • 13 Pages
    Good Essays
  • Good Essays

    Java

    • 490 Words
    • 3 Pages

    Write a Java program to demonstrate using bitmaps and bitwise operators to sort and remove duplicates from a file of random phone numbers. Do not confuse the term bitmap used for compressing data into smaller spaces with the bitmap that has come to mean a graphic image.…

    • 490 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Spring

    • 18996 Words
    • 76 Pages

    Copies of this document may be made for your own use and for distribution to others, provided that you do not…

    • 18996 Words
    • 76 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Programming fundamentals

    • 299 Words
    • 2 Pages

    Note. This assignment is cumulative and the information and results will be used in the following weeks.…

    • 299 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Death Penalty

    • 544 Words
    • 3 Pages

    Have you ever wondered what life would be like knowing that a murderer went free after killing one of your family members; it is a very unsettling thought knowing that people have this feeling everyday. The death penalty is the best punishment for murderers because it is condoned by the Bible, gives closure to family members and keeps the cost of inmates down.…

    • 544 Words
    • 3 Pages
    Good Essays
  • Better Essays

    All rights reserved. No part of this publication may be reproduced, distributed, or transmitted in any form or by any means, including photocopying, recording, or other electronic or mechanical methods, without the prior written permission of the publisher, except in the case of brief quotations embodied in critical reviews and certain other noncommercial uses permitted by copyright law.…

    • 5083 Words
    • 15 Pages
    Better Essays
  • Powerful Essays

    The discovery of beer happened around 10000 BCE. The hunter-gatherers, located in the Fertile Crescent, collected cereal grains because they could be stored for a number of months if kept dry and safe. The storage of grains made it harder to have a nomadic lifestyle; therefore the people started staying in one place. They would try to make water tight storage areas, however water did eventually get into them. After the grain would get wet and the people would cook it, it turned into gruel and when that was left sitting around for a few days it would turn into beer. Beer became important because it was safer to drink, due to the fact that you cooked it which got rid of bacteria. In the Sumerian and Egyptian societies beer was used in religious ceremonies, agricultural fertility rites and funerals. In Egypt beer was used as a currency, for example the workers who built the pyramids were paid in beer. Also, the use of beer as a currency made it become synonymous with prosperity. Egyptians then started to greet each other with the expression “bread and beer”, meaning good luck.…

    • 4232 Words
    • 17 Pages
    Powerful Essays
  • Satisfactory Essays

    After Burn Effect

    • 7297 Words
    • 30 Pages

    No part of this book may be reproduced in any form without permission in writing from the author or…

    • 7297 Words
    • 30 Pages
    Satisfactory Essays
  • Good Essays

    Copyright 1999 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, California 94303, U.S.A. All rights reserved. This product or document is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation. No part of this product or document may be reproduced in any form by any means without prior written authorization of Sun and its licensors, if any. Third-party software, including font technology, is copyrighted and licensed from Sun suppliers. Parts of the product may be derived from Berkeley BSD systems, licensed from the University of California. UNIX is a registered trademark in the U.S. and other countries, exclusively licensed through X/Open Company, Ltd. Sun, Sun Microsystems, the Sun Logo, Solstice, Java, JavaBeans, JDK, and Solaris are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. in the U.S. and other countries. Products bearing SPARC trademarks are based upon an architecture developed by Sun Microsystems, Inc. The OPEN LOOK and Sun Graphical User Interface was developed by Sun Microsystems, Inc. for its users and licensees. Sun acknowledges the pioneering efforts of Xerox in researching and developing the concept of visual or graphical user interfaces for the computer industry. Sun holds a non-exclusive license from Xerox to the Xerox Graphical User Interface, which license also covers Sun’s licensees who implement OPEN LOOK GUIs and otherwise comply with Sun’s written license agreements. RESTRICTED RIGHTS: Use, duplication, or disclosure by the U.S. Government is subject to restrictions of FAR 52.227-14(g) (2)(6/87) and FAR 52.227-19(6/87), or DFAR 252.227-7015 (b)(6/95) and DFAR…

    • 6064 Words
    • 25 Pages
    Good Essays
  • Better Essays

    JAVA LESSON 6

    • 1293 Words
    • 6 Pages

    6: Design, Debugging, Interfaces 6.092: Introduction to Java Assignment 5: main() Programs start at a main() method, but many classes can have main() public class SimpleDraw { /* ... stuff ... */ public static void main(String args[]) { SimpleDraw content = new SimpleDraw(new DrawGraphics()); /* ... more stuff ... */ } } Assignment 5: main()…

    • 1293 Words
    • 6 Pages
    Better Essays
  • Good Essays

    Sample Drills

    • 1352 Words
    • 6 Pages

    ENCAPSULATION - packages data attributes and behaviors into a single unit but still hide implementation details 3. INHERITANCE - enables reuse of code by extending the functionality of the program units 4. POLYMORPHISM - allows multiple implementations though an appropriate implementation can be executed based on the situation. In inheritance, a general class, which is also named as the base class, can be created and with the use of accessor/mutators or properties, the data members can be accessed. There is another specialized class called derived class that inherits the data members of the base class and extends its functionality by adding their own unique data and behaviors.…

    • 1352 Words
    • 6 Pages
    Good Essays

Related Topics