1 / 14

IFS410 Advanced Analysis and Design

IFS410 Advanced Analysis and Design. Week 1 Introduction to Java: Applications. 1. 1. Introduction. Object-Oriented Programming

ulric-baker
Download Presentation

IFS410 Advanced Analysis and Design

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. IFS410Advanced Analysis and Design Week 1 Introduction to Java: Applications 1.1

  2. Introduction • Object-Oriented Programming • OOP is more than learning a new language; it requires a new way of thinking. We must no longer think in terms of data structures - we must think in terms of objects. • Many languages claim to have "Support for Object Technologies!" 1.2

  3. Java • The JavaTM programming language is designed to meet the challenges of application development in the context of heterogeneous, network-wide distributed environments.

  4. Different Kinds of Java • Java Applications • Java Applets • Java Script • Java Server Pages • Java Servlet technology • Java Beans

  5. How Java application works

  6. Object • An object is a software bundle of variables and related methods. • Attribute (State) and Behavior (Method) • Message

  7. Class 06/05/2002 2.7

  8. The Class Declaration

  9. Class Body • Constructor • Declarations for the Variables • Methods to implement the behavior

  10. Declaring Member Variables • A class's state is represented by its member variables. • You declare a class's member variables in the body of the class.

  11. Implementing Methods

  12. Understanding Instance and Class Members • By default, unless otherwise specified, a member declared within a class is an instance member. • To specify that a member variable is a class variable, use the static keyword.

  13. JApplet Class • JApplet is a subclass of java.awt.Applet • javax.swing.JApplet • JApplet -- a class that enables applets to use Swing components • init(), start(), paint(), (stop(), destroy()) • Details in Chapter 20

  14. Lab activities (Week 1) • Tutorial 1 (JCreator) –Assignment 1

More Related