Question: Write .h file for the following UML (must be c++) and a Test.cpp getoutputO: bool +prettyPrint(string padding) + linearPrint0 Pin TwolnputGate NotGate value bool abel:
Write .h file for the following UML (must be c++) and a Test.cpp

getoutputO: bool +prettyPrint(string padding) + linearPrint0 Pin TwolnputGate NotGate value bool abel: string input1 shared_ptr Component- input: shared ptr Component- input2: shared_ptrcComponent gateType LogicOperation Pin(string theLabel) +getOutput: bool +setValue(bool newVal) +prettyPrint(string padding) linearPrint) TwolnputGate(LogicalOperation op) +getOutputo bool + setinput1(shared _ptr Component in1) +setinput(shared_ptr Component in2) + prettyPrint string padding) +linearPrint0 +NotGate0 +getOutputo bool + setinput(shared_ptr Component> in) +prettyPrint string padding) linearPrint0 getoutputO: bool +prettyPrint(string padding) + linearPrint0 Pin TwolnputGate NotGate value bool abel: string input1 shared_ptr Component- input: shared ptr Component- input2: shared_ptrcComponent gateType LogicOperation Pin(string theLabel) +getOutput: bool +setValue(bool newVal) +prettyPrint(string padding) linearPrint) TwolnputGate(LogicalOperation op) +getOutputo bool + setinput1(shared _ptr Component in1) +setinput(shared_ptr Component in2) + prettyPrint string padding) +linearPrint0 +NotGate0 +getOutputo bool + setinput(shared_ptr Component> in) +prettyPrint string padding) linearPrint0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
