Indometric


Posts Tagged ‘Basic Java’

Jun 24
Tuesday

Inheritance and Aggregation in Java Language

Filed under Java Programming

Here are two fundamental mechanisms for building new classes from existing ones: inheritance and aggregation. It makes sense to inherit from an existing class Vehicle to define a class Car, in view of the fact that a car is a vehicle. The class Vehicle has several parts; therefore, it makes sense to define a composite object of class Vehicle that has constituent stuff of such classes as Motor, Axle, and GearBox, which make up a vehicle.

Continue…

All entries filed under this archive


Java Instance and Static Members
no responses - Posted 06.24.08
Each object created will have its own copies of the fields defined in its class. The fields of an object are called instance variables. The values of the instance variables in an object comprise its state. Two distinct objects can have the same state, if their instance variables have the ...continue
Objects of Java
no responses - Posted 06.24.08
Class Instantiation The process of creating objects from a class is called instantiation. An object is an instance of a class. The object is constructed using the class as a blueprint and is a concrete instance of the abstraction that the class represents. An object must be created before it can ...continue
Basics of Java Programming
no responses - Posted 06.24.08
Introduction Before embarking on the road to Java programmer certification, it is important to understand the basic terminology and concepts in object-oriented programming (OOP). In this chapter, the emphasis is on providing an introduction rather than an exhaustive coverage. In-depth coverage of the concepts follows in due course in subsequent chapters ...continue


All content and source © 2010 Indometric. All rights reserved. See our Privacy Policy and DMCA Information