Question: 30 points Create a class Url in a header file. This class should have a constructor that takes a url value as a string, as

30 points Create a class Url in a header file. This class should have a constructor that takes a url value as a string, as well as three getter functions: getScheme() which returns the scheme of the url, getDomain () which returns the domain of the url, and getPath() which returns the path of the url. Implement these functions in a separate source file. The following starter code should run and print out the expected result once you have implemeneted your class. Starter Code: Sample Output: scheme = https : domain =// example.com path =/ path / to / file.txt
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
