Loading [MathJax]/extensions/TeX/boldsymbol.js

 

 

 

Programming classes

What it says is that Complex is a parameterized type with T as a parameter and T has to be a type such as double or float. The class complex is now a class template and we would define variables in a code as

Complex<double> a(10.0,5.1);
Complex<int> b(1,0);