Read the guideline before start
Let's implement 3 classes with inheritance.
- should contain getter property
logowhich return 'Conduit logo' string.
- constructor takes
urland and assign it tourlproperty - constructor contains
headerproperty which is an instance ofHeaderclass - should contain
clickOnLogomethod. The method should return a string 'Click on the' +logofrom theHeaderclass
- constructor taskes
urlandslug. Constructor should modify originalurlby addingslugat the end - should contain getter property
commentButtonwhich return '[Publish comment] button' string - should contain
clickOnCommentButtonmethod. The method should return a string 'Click on the' +commentButton - should contain
assertPageOpenedmethod. The method should return a string 'The ' +url+ 'is opened`
The methods commentButton, clickOnLogo, clickOnCommentButton, and assertPageOpened are placeholders and do not require a real-world implementation for this task.