Free

Abstraction in Java - Research Paper Example

Comments (0) 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 paperFile format: .doc, available for editing
GRAB THE BEST PAPER93.6% of users find it useful
Abstraction in Java
Read TextPreview

Extract of sample
"Abstraction in Java"

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 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
Comments (0)
Click to create a comment or rate a document
CHECK THESE SAMPLES - THEY ALSO FIT YOUR TOPIC
Java
...?Java Programming Access Modifiers a) Difference between public, protected and private Members (variables, methods or declared private can be accessed only by the members of the same class. Accessing a private member outside the enclosing class will result in variable declaration error. In other words, private members are strictly bound within the limits of its declaring class. Members defined with protected modifier can be accessed by classes outside the enclosing class but within the same package. However members declared protected in super class can be accessed by its subclasses, but only if they are present in same package. Members declared public have no bounds, they can be accessed from anywhere by any class...
7 Pages(1750 words)Research Paper
Java Programming
.../* Java Swing Calculator import java.awt.BorderLayout; import java.awt.Color; import java.awt.Container; import java.awt.FlowLayout; import java.awt.Font; import java.awt.GridLayout; import java.awt.Window; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import javax.swing.JButton; import javax.swing.JDialog; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem; import javax.swing.JPanel; import javax.swing.JTextArea; import javax.swing.JOptionPane; public class Calculator extends JFrame implements ActionListener { ...
5 Pages(1250 words)Math Problem
Cubism and Geometric Abstraction
...frame of the racers. The caps of the racers have been portrayed with pyramid structure and from the top to the bottom, the artist keeps the pace. The grey background provides the picture more sharpness and a clear layout. 2. Homage to the Square: With Rays, 1959 by Josef Albers (American, born Germany, 1888–1976) Homage to the Square: With Rays can aptly be included in Geometrical Abstraction—the 20th century innovation in art; especially in drawing. One can find its similarity with Feininger’s The Bicycle Race in which the artist used different geometrical forms. The given picture is arranged with some squires appearing to be overlapping or nested with one another. The picture clearly shows the effects of the nearby...
1 Pages(250 words)Assignment
Postwar Expressionism and Abstraction
...Postwar Expressionism and Abstraction Jackson Pollock’s genius in combining murals and drama as expressed by the use of Cubism is similar to that of Mexican muralists such as José Clemente Oroczo and David Alfaro Siqueros . Definitely, the mania that Pollock had on creating his work famous work “Mural” cannot be denied since persevered day and night, relentlessly painting until he finished the work. In fact, Pollock met Orozco sometimes in the early 30’s through his friend Thomas Hart Benton ( Kalina, 1998,p.1 ). A workshop conducted by Siquieros was attended by Pollock which heavily influenced his style of where he uses loud colors when doing large-scale works such as murals. His style is drip method wherein he...
1 Pages(250 words)Assignment
Java
...Boxes and tubes application (enter and here) April 15, Contents Contents 2 BOXES AND TUBES JAVA APPLICATION HOW THE APPLICATION WORKS. 1. DESIGN The application has been developed using Netbeans® IDE 7.1.1 Netbeans® IDE 7.1.1 is an open source Integrated Development Environment that enables easy and rapid development of web, enterprise and desktop applications using Java and other many other platforms. Advantages of using Netbeans® IDE 7.1.1 includes Enables full compile, debug and profile development for Java applications Provides Swing GUI Builder enhancements and Swing debugging tools. It’s available in many different languages. It is open source and easily available. 2....
4 Pages(1000 words)Coursework
Abstraction Reaction
... Task: ion Reaction Blind contour The procedure made me feel nervous especially when drafting the figure, but I liked the experience after viewing my sketch. I was curious to see the sketch that I could draw out of abstraction. This is because I wondered how the sketch would look like. The procedure provided me with a challenging experience from which I learnt important concepts about abstraction drawing (Cramer 123). I constantly referred to the ideas that I knew about the subject when creating my sketch. This included using my prior experience in approximating the distance and correlations among various components of my subject in order to locate them accordingly. My expectation changed throughout the project because I gathered... ...
1 Pages(250 words)Assignment
Java zone
...Java zone Dicum’s Destination: the Java zone, speaks of the experience that the had upon visiting the Nicaraguan highlands. He is shown around by a coffee farmer (Flora Montegro), a descendent of Germans who had settled in Nicaragua during the colonial times. According to the Dicum (2009), the German were the same people who brought coffee here. The writer liked coffee, making him curious of what goes in the major plantations. The original habitat of coffee was in Ethiopia but since Nicaragua and other countries shares some similar conditions with this natural habitat, people started planting it in areas where there were forests previously. As a consequence, birds, reptiles and other animal species in...
1 Pages(250 words)Essay
Java programing
...the process. Instead of employing a large number of procedures in the code, the programmer chooses a number of objects and models their behavior, in such a manner that collectively these objects and interactions can cater to the system requirements. In addition, the programmer can now work on modules, which are classes to implement the system design. These can be reused and the standard library offers a vast number of such modules to perform a myriad of tasks (Buyya 166). Furthermore, the object – oriented programmer can employ inheritance to reuse the code written by him and add elegant features and behavior to an existing class, at the time of adapting it to a new problem (Balagurusamy 5). Features such as encapsulation and...
1 Pages(250 words)Essay
Java Programing
...Understanding the principles of programming in java Principles, characteristics of java programming Programming in the java language has gain a lot of acceptance by a lot of people and programmers in the world. This is mainly due to the many advantages of using java in creation application that can be either stand alone or web based applications. Java is simple, object oriented, distributed, interpreted, robust, secure, architecture neutral, portable, high performance, multithreaded, and dynamic. Simple Java language omits many rarely used, poorly understood, confusing features found in other programming languages. Java...
6 Pages(1500 words)Assignment
Abstraction
... ION By Location Introduction ion is the process of hiding the finer details of a step and focusing mainly on the final results. The process cuts out the ambiguity and complexity of the steps which make up the final product. In programming, abstraction makes the code easier to understand for a third party individual who wants to access it and render it less wordy. In real life, abstraction takes place in different areas. It is an essential tool that, when applied, eliminates complex processes. In the movie-making sector, abstraction is a key technique. The directors and producers mainly concentrate on the final video/film that the audience will see. The basic steps that are the most tiring and complex are cut out in a bid to focus... on the...
2 Pages(500 words)Essay
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.
Let us find you another Research Paper on topic Abstraction in Java for FREE!
logo footer
Contact us:
+16312120006
Contact Us Now
FREE Mobile Apps:
  • StudentShare App Store
  • StudentShare Google play
  • About StudentShare
  • Testimonials
  • FAQ
  • Blog
  • Free Essays
  • New Essays
  • Essays
  • Miscellaneous
  • The Newest Essay Topics
  • Index samples by all dates
Join us:
Contact Us