130 likes | 228 Vues
Explore the principles of Object-Oriented Programming through Java and learn to think in terms of objects rather than data structures. Dive into Java applications and understand the essence of object technologies. Master the concepts of class declaration, constructors, and member variables in this beneficial tutorial.
E N D
MSIS 670Object-Oriented Software Engineering Week 1 Introduction to Java: Applications 1.1
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
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 • Java Applications • Java Applets • JavaScript • JavaServer Pages • Java Servlet technology • JavaServer Faces (JSF) • JavaBeans
Object • An object is a software bundle of variables and related methods. • Attribute (State) and Behavior (Method) • Message
Class 06/05/2002 2.7
Class Body • Constructor • Declarations for the Variables • Methods to implement the behavior
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.
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.
Lab activities (Week 1) • Tutorial 1 (JCreator LE)