Java语言程序设计第九版第八章答案.doc
(5页)
本资源提供全文预览,点击全文预览即可全文预览,如果喜欢文档就下载吧,查找使用更方便哦!
14.90 积分
Chapter 8 Objects and Classes1. See the section "Defining Classes for Objects."2. The syntax to define a class is public class ClassName {}3. The syntax to declare a reference variable for an object isClassName v;4. The syntax to create an object is new ClassName();5. Constructors are special kinds of methods that are called when creating an object using the new operator. Constructors do not have a return type—not even void.6. A class has a default constructor only if the class does not define any co