#include <iostream> using namespace std; class UART { int baudRate; char parity; public: UART(int v,char c) { baudRate=v; parity=c; cout << "UART initialized with baud=" << baudRate << ", parity=" << parity; } }; int main() { UART u(9600, 'N'); return 0; }
Test Cases
Test Results
Input
Expected Output
UART initialized with baud=9600, parity=N