Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CS 102 HW 4 Chapter 10 Code your own interfaces Although this is not a lab, you are encouraged to use an IDE do the
CS 102 HW 4 Chapter 10 Code your own interfaces Although this is not a lab, you are encouraged to use an IDE do the coding, to avoid syntax errors. However, even if your code does not compile due to syntax errors, you can still submit as homework to get partial credits. 1. Interface Design, not in any package. It has two methods: version it takes no parameter and returns an int value assign it takes a parameter of String type, and returns nothing . O 2. Interface Smart, in package gardGame. It has one constant: LEVEL of int type, of value 5 It has two methods: restart it takes a parameter of Date type, and returns a boolean value process it takes two parameters of Object type, and returns nothing CS 102 HW 4 Chapter 10 Code your own interfaces Although this is not a lab, you are encouraged to use an IDE do the coding, to avoid syntax errors. However, even if your code does not compile due to syntax errors, you can still submit as homework to get partial credits. 1. Interface Design, not in any package. It has two methods: version it takes no parameter and returns an int value assign it takes a parameter of String type, and returns nothing . O 2. Interface Smart, in package gardGame. It has one constant: LEVEL of int type, of value 5 It has two methods: restart it takes a parameter of Date type, and returns a boolean value process it takes two parameters of Object type, and returns nothing
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started