Overview Of Java Object-Oriented Programming Language Concepts

1y ago
14 Views
2 Downloads
1.31 MB
29 Pages
Last View : 30d ago
Last Download : 3m ago
Upload by : Luis Wallis
Transcription

Overview of Java Object-OrientedProgramming Language ConceptsDouglas C. edu/ schmidtProfessor of Computer ScienceInstitute for SoftwareIntegrated SystemsVanderbilt UniversityNashville, Tennessee, USA

Learning Objectives of this Lesson Understand the key object-oriented conceptssupported in JavaAbstractionOOPPolymorphismInheritanceSee en.wikipedia.org/wiki/Java (programming language)2

Overview of KeyObject-Oriented ConceptsSupported by Java3

Key Object-Oriented Concepts Supported by Java Java was originally an object-oriented programming languageSee en.wikipedia.org/wiki/Object-oriented programming4

Key Object-Oriented Concepts Supported by Java Java was originally an object-oriented programming language Thus, Java apps were organized in terms of structural elementsSee en.wikipedia.org/wiki/Object-oriented programming5

Key Object-Oriented Concepts Supported by Java Java was originally an object-oriented programming language Thus, Java apps were organized in terms of structural elements e.g., classes, interfaces, & packagesSee en.wikipedia.org/wiki/Software design pattern6

Key Object-Oriented Concepts Supported by Java An object is an instance of a classthat performs certain operations &interacts with other objectsSee s.html7

Key Object-Oriented Concepts Supported by Java An object is an instance of a classthat performs certain operations &interacts with other objects An object in Java resides in amemory location of a computerSimpleSet T Object[] mElementDataint mSizeint mEnd.boolean add(E element)boolean contains(Object o)int size().See x/ImageCounter/src/main/java/utils/SimpleSet.java8

Key Object-Oriented Concepts Supported by Java An object is an instance of a classthat performs certain operations &interacts with other objects An object in Java resides in amemory location of a computer It consists of State – represented via data fieldsSimpleSet T Object[] mElementDataint mSizeint mEnd.boolean add(E element)boolean contains(Object o)int size().See les.html9

Key Object-Oriented Concepts Supported by Java An object is an instance of a classthat performs certain operations &interacts with other objects An object in Java resides in amemory location of a computer It consists of State – represented via data fields Behavior – represented viamethodsSimpleSet T Object[] mElementDataint mSizeint mEnd.boolean add(E element)boolean contains(Object o)int size().See s.html10

Key Object-Oriented Concepts Supported by Java Objects often correspond to real-worldentitiesanAccount : AccountMoney mCurrentBalanceboolean mOverdraftProtection.void deposit(Money amount)void withdrawl(Money amount)Money checkCurrentBalance().11

Key Object-Oriented Concepts Supported by Java Objects often correspond to real-worldentitiesanAccount : AccountMoney mCurrentBalanceboolean mOverdraftProtection.void deposit(Money amount)void withdrawl(Money amount)Money checkCurrentBalance().12

Key Object-Oriented Concepts Supported by Java Objects often correspond to real-worldentitiesanAccount : AccountMoney mCurrentBalanceboolean mOverdraftProtection.void deposit(Money amount)void withdrawl(Money amount)Money checkCurrentBalance().13

Key Object-Oriented Concepts Supported by Java Objects often correspond to real-worldentitiesanAccount : AccountMoney mCurrentBalanceboolean mOverdraftProtection.void deposit(Money amount)void withdrawl(Money amount)Money checkCurrentBalance().14

Key Object-Oriented Concepts Supported by Java Many non-object-oriented programming languages organizeapps in terms of functional elementsSee en.wikipedia.org/wiki/Procedural programming15

Key Object-Oriented Concepts Supported by Java Many non-object-oriented programming languages organizeapps in terms of functional elements e.g., actions & logic16

Key Object-Oriented Concepts Supported by Java Object-oriented Java programs alsoperform actions & contain logicAccountMoney mCurrentBalanceboolean mOverdraftProtection.void deposit(Money amount)void withdrawl(Money amount)Money checkCurrentBalance().17

Key Object-Oriented Concepts Supported by Java Object-oriented Java programs alsoperform actions & contain logic However, these functional elementsdon’t constitute main focus in theobject-oriented parts of Java18

Key Object-Oriented Concepts Supported by Java Object-oriented Java programs alsoperform actions & contain logic However, these functional elementsdon’t constitute main focus in theobject-oriented parts of JavaJava 8 does focus heavily19on functional programming

Key Object-Oriented Concepts Supported by Java Java supports key object-oriented conceptsAbstractionOOPPolymorphismSee www.stroustrup.com/whatis.pdf20Inheritance

Key Object-Oriented Concepts Supported by Java Java supports key object-oriented concepts, e.g. Data & control ee en.wikipedia.org/wiki/Abstraction (computer science)21

Key Object-Oriented Concepts Supported by Java Java supports key object-oriented concepts, e.g. Data & control abstractions e en.wikipedia.org/wiki/Inheritance (object-oriented programming)22

Key Object-Oriented Concepts Supported by Java Java supports key object-oriented concepts, e.g. Data & control abstractions Inheritance ee en.wikipedia.org/wiki/Polymorphism (computer science)23

Key Object-Oriented Concepts Supported by Java There are many other object-oriented languagesAbstractionOOPPolymorphismInheritanceSee en.wikipedia.org/wiki/List of object-oriented programming languages24

Key Object-Oriented Concepts Supported by Java These are (arguably) the most popular todayAbstractionOOPPolymorphismInheritanceSee en.wikipedia.org/wiki/List of object-oriented programming languages25

Key Object-Oriented Concepts Supported by Java Learning other object-oriented languagesis much easier once you know JavaAbstractionOOPPolymorphism26Inheritance

Key Object-Oriented Concepts Supported by Java If you already know Java well you’ll be bored by some parts of this material!27

Key Object-Oriented Concepts Supported by Java If you already know Java well you’ll be bored by some parts of this material! We will therefore move through this material fairly quicklyPlease ask any questions about this materialsince other lessons depend on it.28

End of Overview of JavaObject-Oriented ProgrammingLanguage Concepts29

Professor of Computer Science. Institute for Software Integrated Systems . Overview of Java Object-Oriented Programming Language Concepts. 2 . Key Object-Oriented Concepts Supported by Java Learning other object -oriented languages is much easier once you know Java. 27

Related Documents:

java.io Input and output java.lang Language support java.math Arbitrary-precision numbers java.net Networking java.nio "New" (memory-mapped) I/O java.rmi Remote method invocations java.security Security support java.sql Database support java.text Internationalized formatting of text and numbers java.time Dates, time, duration, time zones, etc.

Java Version Java FAQs 2. Java Version 2.1 Used Java Version This is how you find your Java version: Start the Control Panel Java General About. 2.2 Checking Java Version Check Java version on https://www.java.com/de/download/installed.jsp. 2.3 Switching on Java Console Start Control Panel Java Advanced. The following window appears:

4. Object-oriented: Java programming is an object-oriented programming language.Like C Java provides most of the object oriented features. Java is pure OOP Language. 5. Robust: Java encourages errorfree programming by being strictly typed and performing - run-time checks. There is lack of pointers that avoids security problem, automatic garbage collection,

Object Class: Independent Protection Layer Object: Safety Instrumented Function SIF-101 Compressor S/D Object: SIF-129 Tower feed S/D Event Data Diagnostics Bypasses Failures Incidences Activations Object Oriented - Functional Safety Object: PSV-134 Tower Object: LT-101 Object Class: Device Object: XS-145 Object: XV-137 Object: PSV-134 Object .

Object oriented design methods emerged in the 1980s, and object oriented analysis methods emerged during the 1990s. In the early stage, object orientation was largely . and extensible system. Whole object oriented modeling is covered by using three kinds of models for a system description. These models are: object model,

method dispatch in different object-oriented programming languages. We also include an appendix on object-oriented programming languages, in which we consider the distinction between object-based and object-oriented programming languages and the evolution and notation and process of object-oriented analysis and design, start with Chapters 5 and 6;

3. _ is a software that interprets Java bytecode. a. Java virtual machine b. Java compiler c. Java debugger d. Java API 4. Which of the following is true? a. Java uses only interpreter b. Java uses only compiler. c. Java uses both interpreter and compiler. d. None of the above. 5. A Java file with

Thermal system engineering is not usually thought of as a first rank engineering discipline as Mechanical, Civil, Electrical and Chemical Engineering, and it is usually ascribed to the leading one (like Aerospace, Naval, and Automotive Engineering) because the paradigmatic thermal systems has always been the heat engine, but its importance pervades all other branches (e.g. thermal control .