Header Ads

What is a polymorphism??

The polymorphism means "having many forms"

Simply, polymorphism means that a single function can have a number of different implementation

Example:

class Enemy{
protected:
int attackpower;
public:
void setAttackPower(int a){
AttackPower=a;
}
}








No comments

Theme images by caracterdesign. Powered by Blogger.