IDYN Solutions

Search Results

OOP Concept – Encapsulation

November 8, 2006 · 25 Comments

Overview
Encapsulation allows an object to separate its interface from its implementation. The data and the implementation code for the object are hidden behind its interface.
Encapsulation hides internal implementation details from users.
Example:
A Customer may issue a check and now know how it is processed. The internal processing is hidden from the customer. Similary, the [...]

Tags: OOP Concepts

OOP Concept – Inheritance

November 8, 2006 · 11 Comments

Basics
Different kinds of objects often have a certain amount in common with each other. Tiger & Cow, for example share the characteristics of Animal; Yet each also defines additional features that make them different. Object-oriented programming allows classes to inherit commonly used state and behavior from other classes.
Inheritance provides a way to extend [...]

Tags: OOP Concepts

Objects And Variables

November 6, 2006 · 2 Comments

Instantiating an Object
An Object is an instance of a Class. After creating an Object, you can access the member variables and methods of the object and assign values to them. An Object is declared in the same way that a variable of a primitive type is declared.
String sampleStr; //This code is used to define an [...]

Tags: Java

Classes, Methods and Objects

October 20, 2006 · 6 Comments

Classes and Objects
The idea of Object-Oriented Programming (OOP) is to place data and methods together in a single entity. The single entity holding the data and methods is called a class. An Object is an instance of a class.
To create a Java application, you organize programming structures by creating classes that consist of [...]

Tags: Java