classname() { //body of default constructor } |
Cars() { //body of default constructor } |
classname(parameter list…) { } |
Cars(int speed, int price) { //body of parameterized constructor } |