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
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