C++Tutorial for Beginners 34 - Overloading Constructors (Following this tutorial)

I'm following cave programmers tutorial in which in cpp file visor.cpp it shows me an error with Visor::Visor(string newName) and upon compilation it shows me an error. The rest of code with world.cpp and visor.h it's all good.

https://www.youtube.com/watch?v=sUHZ0Tw1hiU

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 /*
 * Visor.cpp
 *
 *  Created on: 6 Oct 2019
 *      Author: Giorgi
 */

#include "Visor.h"
#include <iostream>

Visor::Visor() {
	// TODO Auto-generated

	name = "undefined";

}

Visor::Visor(string newName){

	name = newName;


}
what is the error?
Topic archived. No new replies allowed.