User-submitted Projects

324
5632 reads
Sharon's picture

Submitted by

Sharon
Bridge Pattern
This example demonstrates Bridge Pattern in java.Bridge Pattern Compose objects into tree structures to represent part-whole hierarchies.
Run It Now!
80
1875 reads
Sharon's picture

Submitted by

Sharon
Proxy Pattern
This example demonstrates Proxy Pattern in java.Proxy Pattern provide a “Placeholder” for an object to control references to it.
Run It Now!
64
2693 reads
Cloning Objects with Object Data Fields Example
The below example demonstrates how to clone an object with object data field example.
Run It Now!
35
2254 reads
SillySall's picture

Submitted by

SillySall
Object Cloning
The below program demonstrates how to clone an object. In the below program x1,x2 are two objects of class TestClone1 which implements cloneable.The x1 object is clone and assigned to x2 object.
Run It Now!
32
2371 reads
Static Member Inner Classes
The below program demonstrates how to create a static inner class and access it. The below program has class LifePolicy which defines a Static Inner class LifeBenefit which extends class Benefit.
Run It Now!
24
2097 reads
Non-Static Member Inner Classes
The below program demonstrates how to create non-static inner class in java. In the below program, class LifeBenefit is a innerclass to class LifePolicy .
Run It Now!
37
2966 reads
Anonymous Local Inner Classes
The below program demonstrates how to create anonymous local inner class.
Run It Now!
39
2217 reads
Named Local Inner Classes
The below program demonstrates how to create named local inner class.
Run It Now!
36
2586 reads
SillySall's picture

Submitted by

SillySall
Nested Inner Classes
The below program demonstrates how to create nested inner class in java. In the below example , Class Inner is defined within Class Outer and can access Class Outer's datafield.
Run It Now!
31
2254 reads
TimFrank's picture

Submitted by

TimFrank
Tags:

concate string
this program demonstrates string concatenation in cpp
Run It Now!