Hi, I have searched and searched for a code example which shows some basic programming that does not use encapsulation and then the same code but changed to represent encapsulation...

All i can find is examples of encapsulated code

Could someone please post me some simple code snippets

-snippet of some simple code that doesnt use encapsulation

and

-snippet of that same code modified to represent encapsulation

any help would be greatley appriciated