Consider an abstract class Duck, representing all availableducks. Every duck can quack and walk, which are their publiclyaccessible functionalities. While every duck walks the same way,they quack differently which makes quacking an abstract feature ofa duck. Every duck has a weight which determines their ability tofloat, which can be checked by everybody through canFloat method.The weight of a duck can be set through a method available only forall concrete duck implementations. A rubber duck, a kind of a duck,has all the features of a duck (yes, it quacks), but when asked towalk – it acts differently, because a rubber duck
PayPal Gateway not configured
PayPal Gateway not configured