Question: 1. What is difference between class and an instance of the class? 2. A contractor uses a blueprint to build a set of identical houses.

1. What is difference between class and an instance of the class? 2. A contractor uses a blueprint to build a set of identical houses. Are classes analogous to the blueprint or the houses? 3. What is accessor and mutator method? 4. Is it good idea to make fields private? Why or why not? 5. If class has a private field, what has access to the field? 6. What is the purpose of new keyword:? 7. Explain what is meant by the phrase "pass by value" 8. Why are constructors useful for performing "start-up" operations? 9. What is difference between a field and an attribute? 10. What is difference between an argument and a parameter variable? 11.Under what circumstances does Java automatically provide a default constructor for a class? 12. What do you call a constructor that accepts no argument
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
