Explain in your own words why the class is the smallest reasonable unit for testing an object-oriented system.

What will be an ideal response?


When object-oriented software is considered, the concept of the unit changes. Encapsulation drives the definition of classes and objects. This means that each class and each instance of a class (object) packages attributes (data) and the operations (also known as methods or services) that manipulate these data. Rather than testing an individual module, the smallest testable unit is the encapsulated class.

Computer Science & Information Technology

You might also like to view...

You use the ____________________ command to describe the layout of a table.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Dynamic packet filtering is the process of automatically creating temporary filters. In most cases, the filters allow outbound responses to previous inbound requests.

a. true b. false

Computer Science & Information Technology

A class contains methods and ______.

a) clients b) interfaces c) data fields d) data structures

Computer Science & Information Technology

The fundamental building block of all digital logic circuits is the _______.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology