Chapter 4 - #3 Homework Questions

 

 

 

 

 

1.         Describe the difference between a public and a private method.  Between a public a private variable.

 

 

 

2.         Why should a global variable in a class be declared private?

 

 

 

3.         What is method overloading and how does it work.  Provide examples.

 

 

 

4.         What is the function of a reurn type in a method?

 

 

 

5.         What is a driver?

 

 

 

6.         Describe the scope of a variable.