Ifs410 advanced analysis and design
This presentation is the property of its rightful owner.
Sponsored Links
1 / 14

IFS410 Advanced Analysis and Design PowerPoint PPT Presentation


  • 85 Views
  • Uploaded on
  • Presentation posted in: General

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

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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Ifs410 advanced analysis and design

IFS410Advanced Analysis and Design

Week 1

Introduction to Java:

Applications

1.1


Introduction

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


Ifs410 advanced analysis and design

Java

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


Different kinds of java

Different Kinds of Java

  • Java Applications

  • Java Applets

  • Java Script

  • Java Server Pages

  • Java Servlet technology

  • Java Beans


How java application works

How Java application works


Object

Object

  • An object is a software bundle of variables and related methods.

  • Attribute (State) and Behavior (Method)

  • Message


Class

Class

06/05/2002

2.7


The class declaration

The Class Declaration


Class body

Class Body

  • Constructor

  • Declarations for the Variables

  • Methods to implement the behavior


Declaring member variables

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.


Implementing methods

Implementing Methods


Understanding instance and class members

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.


Japplet class

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


Lab activities week 1

Lab activities (Week 1)

  • Tutorial 1 (JCreator) –Assignment 1


  • Login