Answer the following questions true (T) or false (F)

1. Multiple public: and private: sections are prohibited in a class.

2. A sure test of whether you have succeeded in producing an Abstract Data Type (whether you have truly separated the interface from the implementation) is whether you can use the ADT then change either the implementation or the client code without being required to change the other.


1. False
Explanation: The keywords public: and private: have effect that runs up to the next instance of one of these keywords. There is no prohibition against having a sequence of private section after a public section and so on.
2. True
Explanation: This is the definition of ADT.

Computer Science & Information Technology

You might also like to view...

Answer the following questions true (T) or false (F)

1. In a switch statement, the default case is always executed. 2. Not including the break statements within a switch statement results in a syntax error.

Computer Science & Information Technology

To insert a symbol, click the ________ tab and click Symbol

Fill in the blank(s) with correct word

Computer Science & Information Technology

Manually entering data into an Access table will create consistencies in the table and improve the integrity of the data

Indicate whether the statement is true or false

Computer Science & Information Technology

Which Cisco IOS command can be used to determine the current operating trunks on a switch?

A) show interfaces B) show interfaces trunk C) show switch trunk D) show switch switchport

Computer Science & Information Technology