View RSS Feed

Java Object

Object-oriented programming in Java.

  1. Declaring Classes

    by , 04-26-2012 at 06:10 PM
    Classes have been seen that are defined in this way:
    Java Code:
    class MyClass {
        // field, constructor, and 
        // method declarations
    This is what is known as the class declaration. All codes are present in class body which gives out for the objects that have been created by the class. Declaration is for sake of the fields that give the state of objects and class & also the methods for implementation of the behavior of objects and class. Constructors ...