Question: As soon as possible. Question 2: For question 2 you will write a class in the file Question2.php. Examples on how the class is used
As soon as possible.
Question 2: For question 2 you will write a class in the file Question2.php. Examples on how the class is used is shown in Usuage2.php. The class you will write will inherit from the abstract class Section. Reference HTML Nav tag: https://www.w3schools.com/tags/tag nav.asp The NavMenu class is used to create navigation menus that can contain multiple navigation items. The user of this class, can add or remove navigation items, as well as modify the URL associated with an navigation item. If should implement the following methods addNav o The addNav method should take 3 parameters, name, text, and url o The name is used to remove the item, retrieive the item, and change the URL by methods below o html and url will be used to generate a navigation item in render Section. text o This information should be stored in a list of navigation items. removeNav o The removeNav method should take 1 parameter, nameToRemove o ifa navigation item has a name matching nameToRemove it should be removed from the internal list of navigation items. render Section When this method is called a rendering of a navigation section based on the current navigation items For example: . $nav = newNavMenu("men1"); Snav->addNav("Item1","CBC" "http://www.cbc.ca"); . $nav->renderSection(); The above line shoudl return a string representing a nav section for the current information. .
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
Students Have Also Explored These Related Databases Questions!