{I+=codeWee;}
[C++] Inheritance overloading: How to make overloading function for parent class function.
class A
{
public:
	void foo(void) {}
};


class B : public A
{
public:
	using A::foo;		// <-----------------
	void foo(int x) {}	// overloading in child class
};
HTML | PHP | C++ | DirectX11 | Javascript | C# | HTML5 | ASP | SQL | General | CSS | Oculus Rift | Unity3d | Virtools SDK | Tip | NSIS | PowerShell | node.js | Web API | RTSP | All
Copyright© 2016 CodeWee.com All rights reserved.