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