Object Oriented Software Engineering   View all facts   Glossary   Help
subject > component > module > Java module
Next moduleC module    Upmodule    Previous modulecohesive module   

Java module comparison table
Subject store declare is a subtopic of name after create see also access by have form extend import by have advantage provide has part place in represent return to contain group have purpose implement help need in order is a kind of define draw as hide use override have has definition be divide up into
Java classin a file of the same namea list of variables, called instance variables, corresponding to data that will be present in each instanceThe Basics of Javathe internals of a computer system such as 'Record', 'Table', 'Data', 'Structure', or 'Information'to hold a responsibility if the responsibility cannot be attributed to any of the existing classesclass^2 
class classname
{ // declarations of variables
// declarations of constructors (discussed below)
// declarations of other methods with public ones first
}
only one superclass   variablesits own source fileseveral similar objects data associated with each objectthe pieces of data that describe some entity, so that programmers can manipulate that data as a unit particular low-level subsystemsa programmer to cope with the complexity of dataa domain model if you have to store or manipulate instances of it in order to implement a requirementelements as follows:
  1. class variables
  2. instance variables
  3. constructors
  4. the most important public methods
  5. methods that are simply used to access variables
  6. private methods
Java module a box with the name of the class inside in a UML class diagramthe details of dataan implements clause to declare that it contains methods for each of the operations specified by the interface a unique name since somebody in the future might want to import the packages containing both classes and hence create a name clash abstract if it has one or more abstract methodsmethods
Java method  9.1 - The Process of Design   other methods and variables in any class in the same package by default   when using a certain procedure, a programmer does not need to worry about all the details of how it performs its computations; he or she only needs to know how to call it and what it computesprocedural abstraction   its caller from only one place which should be the last statement       method  the details of procedures a method in a superclass with the same namea comment at its head if the method is non-obvious public except for those that will definitely need to be called from outside the package 
Java package  The Basics of Java  package^3   using the import statement  Java package name     to group together related classes into a subsystemsubsystem   package^2a name space     A collection of classes and interfacesreusable if it can be used in several different systems with little or no modification 

Next moduleC module    Upmodule    Previous modulecohesive module