Closed SaintNerevar closed 1 year ago
Using char type for Block type as argument in Constructor 1 is inconvenient as methods use int form of Block types. Using int as argument in Constructor 1 would collide with the signature for Constructor 2. Instead, we can define an enum like so -
char
int
enum BlockType { LeafIndex = IND_LEAF, InternalIndex = IND_INTERNAL, Record = REC }
This is part of Constructor 1 issue #33
Using
char
type for Block type as argument in Constructor 1 is inconvenient as methods useint
form of Block types. Usingint
as argument in Constructor 1 would collide with the signature for Constructor 2. Instead, we can define an enum like so -