C++ Constructor Implementation Error
<p>C++ Constructor Implementation Error</p>

<p>I have 2 class</p>

<pre><code>Map2D(parent) &amp; Map3D(child)
</code></pre>

<p>So this is what happen...</p>

<pre><code>class Map3D : public Map2D
{
private:
int z;

public:
Map3D();
Map3D(int,int,int);
int getZ();

}
</code></pre>

<p>And below is my Map2D</p>

<pre><code>class Map2D
{

friend ifstream&amp; operator&gt;&gt;(ifstream&amp;, Map2D&amp;);

protected:
int x;
int y;

public:
Map2D();
Map2D(int,int);

};

Map2D::Map2D()
{
x=0;
y=0;
}

Map2D::Map2D(int xIn,int yIn)
{
x = xIn;
y = yIn;
}
</code></pre>

<p>The problem now is i try to implement Map3D but got issue.. which what i try is below</p>

<p>Back on Map3D.cpp</p>

<pre><code>Map3D::Map3D()
{
x=0;
y=0;
z=0;
}

Map3D::Map3D(int xIn,int yIn,int zIn)
{
x=xIn;
y=yIn;
z=zIn;
}

map3d.cpp:18:1: error: extra qualification ‘map3D::’ on member ‘map3D’ [-fpermissive]
map3d.cpp:18:1: error: ‘map3D::map3D()’ cannot be overloaded
map3d.cpp:14:1: error: with ‘map3D::map3D()’
map3d.cpp:25:1: error: extra qualification ‘map3D::’ on member ‘map3D’ [-fpermissive]
map3d.cpp:25:1: error: ‘map3D::map3D(int, int, int)’ cannot be overloaded
map3d.cpp:15:1: error: with ‘map3D::map3D(int, int, int)’
</code></pre>

<p>What should i change to make my implementation correct. Thanks for all help.</p>
