Programming, Swift, Object Oriented, Objective C.
/// Wide gamut RGB (DCI-P3) color space case wideGamutRGB } private(set) var colorSpace: ColorSpace override init() { colorSpace = .wideGamutRGB super.init() } } In C we can use composition to simulate inheritance. // Canvas.h typedef enum ColorSpace { sRGB = 0, wideGamutRGB } ColorSpace; extern