Question: Objective: Understanding the concept packages & interfaces of Java. Note: Use eclipse, Language: Java. Kindly share all the screenshots with the output and the codes
Objective: Understanding the concept packages & interfaces of Java.
Note: Use eclipse, Language: Java. Kindly share all the screenshots with the output and the codes written.
part (a) Write an interface Crawlable with method crawl. Create another interface Moveable with method move. Then write a class Animal and implement both interfaces to show multiple inheritance.
part (b) Write a class that implements the CharSequence interface found in the java.lang package. Your implementation should return the string backwards. Select one of the sentences from this book to use as the data. Write a small main method to test your class; make sure to call all four methods.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
