StudentShare
Contact Us
Sign In / Sign Up for FREE
Search
Go to advanced search...
Free

Abstraction in Java - Research Paper Example

Cite this document
Summary
Abstraction as used in Java Programming is a simplification of a complex reality through modeling classes that are appropriate to the problem, while working at the level of inheritance that is most appropriate for a certain aspect of the problem …
Download full paper File format: .doc, available for editing
GRAB THE BEST PAPER92.3% of users find it useful
Abstraction in Java
Read Text Preview

Extract of sample "Abstraction in Java"

ion in Java ion as used in Java Programming is a simplification of a complex reality through modeling es thatare appropriate to the problem, while working at the level of inheritance that is most appropriate for a certain aspect of the problem (Benjamin, 2007). It involves representing vital features of a system without being involved within the complexity of the system. This makes only the required elements of the object to be represented while hiding the irrelevant object details. In doing so, it helps define an object in terms of its interface, properties or attributes, as well as its functionality (behavioral).

More often than not, it is used in separation of the members that are prone to change. Abstraction is among the main principle of Object oriented analysis and Design (David, 2008). Its application in OOAD, especially during the process of design and domain modeling, aids a lot in the designing of the system that is maintainable and flexible. Abstraction Example: Abstraction can be achieved by Composition. For instance, a class Car is made up of Steering objects, an engine, and many other components.

When building the Car class, it is not mandatory for an individual to be aware of how different components seem to be working internally (Gu, 2011). Knowing how to interface with the parts of the car, such as sending messages to them, receiving messages from them, and making different objects able to compose the class interact with each other is what is necessary. When writing the characteristic of the car, wheel and Engine in a single class, it looks like this: Public class car { int price; String color; String name; String wheel Name; int wheelprice int engineHorse power int engine Capacity the void move() { // move forward Void rotate () {wheel methods .

} Void internal combustion () //Engine method } } In the example given above, the attributes of the engine, as well as the wheel and are added to the Car type. According to the programming, this would not end up creating any kind of issues. However, coming to maintenance of the application, it becomes somehow more complex. When the abstraction with composition is applied, the example above becomes modified as given in the example below: Public class car { Wheel wheel =new wheel (); Engine engine = new Engine (); String name; int price; String color; Void move () { //move forward } Int enginecapacity; Public class Engine Void internal combustion () (//Engine method } } Publc class wheel { String wheel Name; Intwheel price; Void rotates () { // Wheel method } } One can easily see that attributes, as well as methods that relate to the Engine and Wheel are moved to the respective classes.

As can be seen, both wheel and Engine are referred just from the Car type. In cases where the instance of Car becomes created, the Engine and Wheel would be always available for the Car, and whenever there are noticeable changes to the Types i.e. Engine and Wheel, these chances are only confined to such classes and would not in any way affect the Car class. The inventory program, as well as the car simulation program, would be using the car abstraction created. The inventory programs implemented in my system include the manage inventory, the view inventory and the search inventory.

Manage Inventory is the key element that the system focuses. The View inventory would be used in viewing all the current cars in the database displaying them in an understandable and easy layout. Search Inventory would be used in searching the database for certain specific vehicle. Add cars inventory helps in adding cars to the database, making Model, price etc. There would be a list of criteria, which helps in organizing and making managing the inventory easy. The sell Cars helps in marking the cars as sold, while keeping in the database for the future statistical calculations (John, 2001).

The car abstraction would be used in driving simulators for training of the driver. On many occasions, driving simulators have been built from the five key components: traffic model, visuals, vehicle model, motion and scenarios, and instructions. For all these components, the bottom line is current simulators do not present all the information that is relevant for the driver. Driving simulators have relatively simple environments that are inhabited by traffics that at times behave in an odd manner (Kemeny, & Panerai, 2003).

This environment is not ideal for the expert to train though more suitable for the novices (Jerry, 1998). Car abstractions are used in 2 ways. These are before the normal training of the driver and the integrated system use. In vehicle modeling, car simulators use simple, but special purpose vehicle model. The models of this types, often allow the steering behavior of a Car to get modeled in the real time, following the limited computed power that is available. Vehicle models are approaching perfection, and the simulators simply use the same model, software tools and programming languages such as those used by engineers in designing of their vehicles.

It helps allow the handlings of the driving conform and characteristics of the vehicle so that it is evaluated early at the design phase. Simulators Car simulators involve visually dominant work, and the presentation of visual information is a vital issue in Car simulators. Following this discussion, it is clear that car abstraction and inventory programs do not share common abstraction. The details are essential when doing driving simulation includes traffic model, visuals, vehicle model, motion and scenarios, and instructions, while details that are essential when using an inventory program for a car dealer include manage Inventory, view inventory, and search inventory (Jerry, 1998).

References. Benjamin, C. (2007). Study on Application of Inventory Control Process by Application of Genetic Algorithims. Budapest University of Technology and Economics. David, J. (2008). Developing and Implementing Computer Simulated Performance Tests. Cambridge University, UK. Gu, Y. (2011). A Model of Jointly Managed Inventory Simulation in the Steel market’s ERP System. Advanced material Research.Volume:187pp492-497. Jerry, B. (1998). Discrete System Simulation. Prentice Hall International Series. John, W. (2001).

Developments in Business Simulation & Experiential Exercises. A proposed interactive Inventory Control simulation. University of Vermont. Kemeny, A, & Panerai, F. (2003). Evaluation of perception in driving simulation experiments Trends in Cognitive Science, 7(1):31-376.

Read More
Cite this document
  • APA
  • MLA
  • CHICAGO
(“Abstraction in Java Research Paper Example | Topics and Well Written Essays - 750 words”, n.d.)
Retrieved from https://studentshare.org/physics/1455072-the-notion-of-abstraction
(Abstraction in Java Research Paper Example | Topics and Well Written Essays - 750 Words)
https://studentshare.org/physics/1455072-the-notion-of-abstraction.
“Abstraction in Java Research Paper Example | Topics and Well Written Essays - 750 Words”, n.d. https://studentshare.org/physics/1455072-the-notion-of-abstraction.
  • Cited: 0 times

CHECK THESE SAMPLES OF Abstraction in Java

Exploring Programming Languages

The classes in java are blueprints that are used for the creation of an object, thus, it makes an object an instance of a class.... Inheritance in java is the ability of a class to inherit frequent used states and behaviors of other classes.... The programming language is an artificial language used by computers wherein machine instructions are written and then translated into machine language to be executed. … java is an object-oriented programming language created in 1995 by Sun Microsystems for the development of software applications and interactive programs or applets which are commonly used in the internet for animation purposes....
3 Pages (750 words) Essay

Java Game Programming, any future

The program can be written only once in java and can be compiled in any operating system.... But, most of the mobile games that are used today are being developed in java.... The important difference between these two languages is that in java, there are no pointers and hence the learning and understanding is easier in java.... But with vast improvement in java execution, several technologies have been developed which can be used in hand with the virtual environment....
15 Pages (3750 words) Essay

Can Teaching The Key Ideas Of Object Orientation Be Aided By Using Visual Representations

The purpose of the study "Can Teaching The Key Ideas Of Object Orientation Be Aided By Using Visual Representations" was to evaluate the new stratagem in teaching Object Oriented Programming by using visual representations as opposed to a cumbersome old Procedural way of programming.... … In computer science, object-oriented programming (OOP), it is a computer programming paradigm that emphasizes the following concepts: Objects - Packaging data and functionality together into units within a running computer program; objects are the basis of modularity and structure in an object-oriented computer program....
33 Pages (8250 words) Dissertation

The Overview of Programming Languages

These components together constitute the level of abstraction on which we can formulate algorithms with the help of this programming language.... This essay presents a brief overview on the topic of programming languages.... The paper talks about the history of programming languages emergence, their classification, definitions, elements, features, data types, data structures and the typical instructions and control flows they use....
4 Pages (1000 words) Essay

Critical Difference Between Java and C#

At the same time as a java loper the earlier sentence could be explained as ‘a short description of the java language and platform' instead the words C# and the .... ET platform were replaced with words java and the java platform ( Obasanjo, 2007).... java is another programming language basically developed by Sun Microsystems and released in 1995 as a most important element of Suns java platform....
12 Pages (3000 words) Essay

Object Oriented Programming

Data Structures and Algorithms in java.... Programming With java:A Primer .... Object – oriented Programming with java: Essentials and Applications.... java Programming.... Features such as encapsulation and abstraction provided by object – oriented programming, greatly enhance the elegance and simplicity of the programming process....
1 Pages (250 words) Essay

Java Spring MVC Programming

This module of the spring framework supports all popular data access frameworks in java: oracle, JDBC, Oracle TopLink, Apache OJB, JPA, JDO, Hibernate, Apache Cayenne, etc.... This assignment "java Spring MVC Programming" examines the transaction management module brings a mechanism of abstraction to the java platform with the following capabilities: the ability to work with nested transactions, ability to work with savepoints.... hellip; Spring framework is a kind of open-source framework that is used for building applications on the java platform....
2 Pages (500 words) Assignment

The Operation of Java Applications in the Context of Operating Systems

This term paper "The Operation of java Applications in the Context of Operating Systems" evaluates the operations of java applications in the context of computer hardware and operating systems with a special focus on the various features and capabilities of java.... The paper discusses the various features and the capabilities of java that rely on and supporting the system operations.... In this paper, I will explain the operation of java applications in the context of computer hardware and Operating Systems (OS), the features and capabilities of java that rely on support OS operations....
6 Pages (1500 words) Term Paper
sponsored ads
We use cookies to create the best experience for you. Keep on browsing if you are OK with that, or find out how to manage cookies.
Contact Us