Presentation is loading. Please wait.

Presentation is loading. Please wait.

IFS410 Advanced Analysis and Design Week 1 Introduction to Java: Applications 1.11.1.

Similar presentations


Presentation on theme: "IFS410 Advanced Analysis and Design Week 1 Introduction to Java: Applications 1.11.1."— Presentation transcript:

1 IFS410 Advanced Analysis and Design Week 1 Introduction to Java: Applications 1.11.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.21.2

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

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

5 1.5 How Java application works

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

7 Class 2.7 06/05/2002

8 1.8 The Class Declaration

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

10 1.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 1.11 Implementing Methods

12 1.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 1.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 1.14 Lab activities (Week 1) Tutorial 1 (JCreator) –Assignment 1


Download ppt "IFS410 Advanced Analysis and Design Week 1 Introduction to Java: Applications 1.11.1."

Similar presentations


Ads by Google