In: Computer Science
In order to achieve faster access to data, many I/O operations involve specific data structure class called "Buffer". Our goal in this question is to design a UML class diagram for a character buffer (an array of chars ) based on the following description. This particular buffer:
UML class diagram for Buffer:
Buffer |
- charBuffer : char* - size : int - empty : bool - full : bool |
+ writeToBuffer(buffer : char*) : void + readFromBuffer() : char* + deleteBuffer() : void + isEmpty() : bool + isFull() : bool |
Buffer class has the following data members:
Buffer class has the following functions: