A glossary of OOP terms
Deadline for Assignment 1: 4:00pm Thursday 17th November 2011
Overview
The Glossary program implements a glossary of Java terms. The user
should be able to interact with this glossary by typing terms. If the
term exists in the glossary, the program displays its definition. On
the other hand, if the term cannot be identified, the program suggests
a list of similar terms. The user should then be able to type another
term (possibly from the similar term list) and continue with the
interaction. The program finishes when the user types the string
`finish'. A sample interaction with the program follows:
Enter term: class
In the Java programming language, a type that defines the implementation
of a particular kind of object. A class definition defines instance and
class variables and methods, as well as specifying the interfaces the class
implements and the immediate superclass of the class. If the superclass is
not explicitly specified, the superclass will implicitly be Object
Enter new term: supper-class
Which one of these do you mean?
superclass
subclass
class
super
scope
Enter new term: superclass
A class from which a particular class is derived, perhaps with one or more
classes in between. See also subclass
Enter new term: abstract metods
Which one of these do you mean?
abstract method
abstract class
Enter new term: abstract method
A method that has no implementation
Enter new term: finish
|
Note that when the program suggests a list of similar terms, this list
is organised so that more similar terms are at the beginning and less
similar ones at the end.
| Last updated at 8:02pm, Thursday September 22nd 2011 |
Dr Natalia Beloff (N.Beloff@sussex.ac.uk) |
|
|
|