wrote:
> Hi, I wrote some programs with friend classes but some of them work and
> some of them don't work, can antbody help me?
You have an error on line 42 of your program. Post a minimal,
compilable example that shows the behavior you don't like, tell us what
behavior you expected, and what you got.
> First, I want to know how
> much it is useful in programming, Then I need links to learn about it
> and finally if you can, help me!
It's as useful as any other part of the language.
Read your text book.
This sounds suspiciously like homework.