Review Questions

   

Java™ 2 Primer Plus
By Steven Haines, Steve Potts

Table of Contents
Chapter 6.  Classes


1:

Define encapsulation.

2:

What is the purpose of the get/set methods?

3:

What is a constructor? When is it called?

4:

What is the difference between a public variable and a private variable?

5:

What is the this variable, and what is it used for?

6:

What is composition?

7:

What is garbage collection, and when is it run?

8:

What is an inner class, and what types of inner classes can you create?

9:

What does "pass by reference" mean?

10:

What is significant about the fact that object variables are really references to objects?


       
    Top
     



    Java 2 Primer Plus
    Java 2 Primer Plus
    ISBN: 0672324156
    EAN: 2147483647
    Year: 2001
    Pages: 332

    Similar book on Amazon

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net