Search Results

Search found 1 results on 1 pages for 'typedreference'.

Page 1/1 | 1 

  • Instantiation vs. Typed reference

    - by Farstucker
    Just when I think Im starting to understand the basics, I find something that brings me right back to reality. In this case, typed reference. I found an example similar to this: class Worker { Boss boss; public void Advise(Boss pBoss) { this.boss = pBoss; } How can you reference methods within the Boss class if its not static and not instantiated? I guess my real question is whats the difference between: Boss boss; and Boss boss = new Boss(); Thank you, FS

    Read the article

1