Implement a class Browser
with a method render()
. Extend this class into ChromeBrowser
and FirefoxBrowser
, each implementing the render()
method appropriately.
Example 1:
Input: ChromeBrowser
Output: "Rendering webpage in Chrome"
Example 2:
Input: FirefoxBrowser
Output: "Rendering webpage in Firefox"