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

    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
  • Good Essays

    Java

    • 827 Words
    • 4 Pages

    9. The withholding tax on a weekly salary (let us assume) is computed as follows: 14% of the difference between a person's gross pay and $13 times the number of dependents he or she claims. Read the values for the gross pay and the number of dependents; print the withholding tax.…

    • 827 Words
    • 4 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
  • 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
  • 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

    Oop Concepts

    • 1471 Words
    • 6 Pages

    Data is hidden and cannot be accessed by external functions, this is referred to as data encapsulation only a restricted set of operations can be done on the hidden member of the class by executing special functions called Methods. The advantages of using data encapsulation comes when the implementation of the class changes but the interface remains…

    • 1471 Words
    • 6 Pages
    Good 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

    Inheritance and Polymorphism Prepared by: Prof. Irysh Paulo R. Tipay, MSCS Quote for the Day  “That's the thing about people who think they hate computers. What they really hate is lousy programmers.” ― Larry Niven Recap!…

    • 1037 Words
    • 18 Pages
    Good 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