(a) Define an interface called This interface should ProductRegisterListener. include a void type function called register that accepts a String parameter. (b) Create an abstract class called Software. Include a String attribute called name and a double attribute called version. Ensure it can be accessed within the class hierarchy. Include a constructor to initialize all the attributes. Create an abstract method named about. (c) Create a child class called LicensedSoftware that inherits from the Software and Product RegistertListener. The class should include a private member called price as double type. Ensure that this class cannot be sub-classed. Include a constructor to initialize the data members appropriately. Override the about method to print out all the software details. Override the register method to pass the email address as the parameter and it will print out the following sample output: The software "name" registration details have been sent out to your user@xxx.com account.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

basic java code, self-learner here so pls do use more // comments ya if needed

pls label the solution with the question label

Question 4
(a) Define an interface called Product RegisterListener. This interface should
include a void type function called register that accepts a String parameter.
(b)
(c)
Create an abstract class called Software. Include a String attribute called name and a
double attribute called version. Ensure it can be accessed within the class hierarchy.
Include a constructor to initialize all the attributes. Create an abstract method named
about.
Create a child class called LicensedSoftware that inherits from the Software and
ProductRegistertListener. The class should include a private member called
price as double type. Ensure that this class cannot be sub-classed. Include a constructor
to initialize the data members appropriately. Override the about method to print out all
the software details. Override the register method to pass the email address as the
parameter and it will print out the following sample output:
The software “name” registration details have been sent out
to your user@xxx.com account.
Transcribed Image Text:Question 4 (a) Define an interface called Product RegisterListener. This interface should include a void type function called register that accepts a String parameter. (b) (c) Create an abstract class called Software. Include a String attribute called name and a double attribute called version. Ensure it can be accessed within the class hierarchy. Include a constructor to initialize all the attributes. Create an abstract method named about. Create a child class called LicensedSoftware that inherits from the Software and ProductRegistertListener. The class should include a private member called price as double type. Ensure that this class cannot be sub-classed. Include a constructor to initialize the data members appropriately. Override the about method to print out all the software details. Override the register method to pass the email address as the parameter and it will print out the following sample output: The software “name” registration details have been sent out to your user@xxx.com account.
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY