Java data objects
-
The unit in procedural programming is function, and unit in object-oriented programming is class Procedural programming concentrates on creating functions, while object-oriented programming starts from isolating the classes, and then look for the methods inside them. Procedural programming separates the data of the program from the operations that manipulate the data, while object-oriented programming focus on both of them
20p huanltgc00061 05-05-2013 41 2 Download
-
A collection is a data structure – actually, an object – to hold other objects, which let you store and organize objects in useful ways for efficient access Check out the java.util package! Lots of interfaces and classes providing a general collection framework. Programmers may also provide implementations specific to their own requirements
19p huanltgc00061 05-05-2013 55 2 Download
-
An interface is a way to describe what classes should do, without specifying how they should do it. It’s not a class but a set of requirements for classes that want to conform to the interface E.g. public interface Comparable { int compareTo(Object otherObject); } this requires that any class implementing the Comparable interface contains a compareTo method, and this method must take an Object parameter and return an integer
19p huanltgc00061 05-05-2013 61 5 Download
-
Procedural vs. Object-Oriented Programming The unit in procedural programming is function, and unit in object-oriented programming is class Procedural programming concentrates on creating functions, while object-oriented programming starts from isolating the classes, and then look for the methods inside them. Procedural programming separates the data of the program from the operations that manipulate the data,
20p huanltgc00061 05-05-2013 49 4 Download
-
Developed by Sun Microsystems (James Gosling) A general-purpose object-oriented language Based on C/C++ Designed for easy Web/Internet applications Widespread acceptance Simple fixes some clumsy features of C++ no pointers automatic garbage collection rich pre-defined class library Object oriented focus on the data (objects) and methods manipulating the data all functions are associated with objects almost all data types are objects (files, strings, etc.) potentially better code organization and reuse...
14p huanltgc00061 05-05-2013 72 3 Download