Computer Programming Mailing A Letter Example In Java

image_pdfimage_print

Mailing A Letter In Java

In the example below :

[Object Oriented Programming Example Mailing A Letter]

This tutorial implements it in Java.

[Do you remember in our simple example ]

It showed a class and also main.


This example will need a few classes, one of which will have a main.

Do you remember the significance of main ?


Classes

Envelope
Letter
Stamp
Paper


Although what I’m about to do is not needed. I am adding an additional class called
Start

The reason for start is to hold main and to get things running.

NOTE: In a more complex example there would be an obvious top class which would have main

To Read The Full Article