Java

32
2675 reads

February 22, 2013

Call by Value


The program below demonstrates how simple Types are passed by value.

32
2416 reads

February 22, 2013

Object initializes another


The program below demonstrates a class Box allows one object to initialize another.

36
2546 reads

February 22, 2013

Object Passing


The program below demonstrates that an objects may be passed to methods.

55
2654 reads

February 22, 2013

Class Example


This example demonstrates a class Box.

32
2647 reads

February 22, 2013

Automatic Type Conversion


The program below demonstrates automatic type conversions that applies to overloading.

30
3407 reads

February 22, 2013

Method Overload


The program below demonstrates method overloading.

37
2544 reads

February 22, 2013

Defining an Integer Stack


This class defines an integer stack that can hold 3 values.

33
2352 reads

February 22, 2013

Resolving name-space collisions


This example demonstrates the use of "this" to resolve name-space collisions - check out the constructor.

34
2702 reads

February 22, 2013

Redundant this


The program below demonstrates a redundant use of "this" - check out the constructor.

25
2610 reads

February 22, 2013

Constructor with Parameters


The program below demonstrates a class Box that uses a parameterized constructor to initialize the dimensions of a box.