您的位置:寻梦网首页编程乐园Java天地Core JavaJava Lecture Notes

Introduction

Content

Apply

Reflect

Extend

previous.gif
 (3087 bytes)

next.gif
 (2959 bytes)

 

Apply Index

Apply Page # 5

Exercise 2 — Classes and Objects Summary

Complete the following statements that summarise the concepts explored in the 'Classes' section of this unit:

Every program must have at least one _____.

A class acts as a ________ for a category of objects.

Program instructions can only exist inside _______, which are inside classes.

The ___ operator creates new objects of a specific class.

Objects are created and _________ during the execution of a program.

Classes do not usually have to be explicitly removed — the Java system gets rid of them when they are no longer accessible. This is known as _______ __________.

_______ in classes can (and usually do) create new objects.

Discussion of Exercise 2
Back to content 

Back to top

basicline.gif (169 bytes)

RITSEC - Global Campus
Copyright ?1999 RITSEC- Middlesex University. All rights reserved.
webmaster@globalcampus.com.eg