1. Create an interface named Teachable 2. Load the interface with the ff properties: - public...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Create an interface named Teachable 2. Load the interface with the ff properties: - public void listen() - public void teach() - void learn() 3. Add a default static method with no return type and name it read 4. read() method will return "I am reading!" 5. Create another interface and name it Readable and inherit the first interface created 6. Load the interface (Readable) with the ff properties: - void know() - public void look() 7. Add a final static field numberOfPages and initialize a value of your favorite number. 8. Create an abstract class name Teacher that implements both interfaces 9. Define the ff properties in the abstract class: - teach() - String name = "Randy" - int age = 25 10. Create a concrete class (Student) that will implement all the methods of the existing interfaces and class 11. The body (Console) of each abstract method will depend on its name, e.g, "I am listening!". 12. Display all the methods and fields in a separate class named Main using the instantiation Teacher student = new Student();. 13. Pass the java files - Teachable.java - Readable.java - Teacher.java - Student.java - Main.java 1. Create an interface named Teachable 2. Load the interface with the ff properties: - public void listen() - public void teach() - void learn() 3. Add a default static method with no return type and name it read 4. read() method will return "I am reading!" 5. Create another interface and name it Readable and inherit the first interface created 6. Load the interface (Readable) with the ff properties: - void know() - public void look() 7. Add a final static field numberOfPages and initialize a value of your favorite number. 8. Create an abstract class name Teacher that implements both interfaces 9. Define the ff properties in the abstract class: - teach() - String name = "Randy" - int age = 25 10. Create a concrete class (Student) that will implement all the methods of the existing interfaces and class 11. The body (Console) of each abstract method will depend on its name, e.g, "I am listening!". 12. Display all the methods and fields in a separate class named Main using the instantiation Teacher student = new Student();. 13. Pass the java files - Teachable.java - Readable.java - Teacher.java - Student.java - Main.java
Expert Answer:
Answer rating: 100% (QA)
here are the Java files for the specified requirements 1 Teachablejava public interface Teachable vo... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Assume that Mesquite Coffee Shop completed the following periodic inventory transactions for a line of merchandise inventory: Requirements 1. Compute ending merchandise inventory, cost of goods sold,...
-
Exercise 9 (Degree of Operating Leverage) Franda Company installs home theater systems. The company's most recent monthly contribution format income statement appears below: Selling price Variable...
-
Predictive text entry systems are familiar on touch screens and mobile phones. This question asks you to consider how the same principles might be used in a programming editor for creating Java code....
-
1. Debate whether or not online retailers should be required to collect state sales taxes. Suggest an equitable solution to this issue. 2. Research online tax rules. Look specifically at the 1992...
-
(a) Prove that any 2 2 matrix of rank 1 can be written in the form A = uvT where u, v R2 are non-zero column vectors. (b) Which rank one matrices correspond to orthogonal projection onto a...
-
Assume these variables are at your disposal: private int myCounter = 17; private int yourCounter = 12; What is the output of the following statements? a. System.out.println ( "The count is" +...
-
Kitch Corporation has 50,000 shares of \(\$ 5\) par value common stock outstanding and retained earnings of \(\$ 820,000\). The company declares a 100 percent stock dividend. The market price at the...
-
Borrachero Company has two fringe benefit plans for its employees: 1. It grants employees 2 days vacation for each month worked. Ten employees worked the entire month of March at an average daily...
-
Student question 1. Assess how globalization and technology changes have impacted Amazon. 2.Apply the industrial organization model and the resource-based model to determine how Amazon could earn...
-
State two factors that should be controlled in manufacturing a cylindrical container of uniform thickness, which should normally be in a standing position. Explain in detailed.
-
There is lots of growing research about the social determinants of health (SDOH) and how healthcare providers can improve the care based upon certain factors such as economic status and resources...
-
The financial data for Oriole Foods Inc. and Pharoah Enterprises Ltd. for the current year are as follows (amounts in thousands): Annual Sales Accounts Receivable Jan. 1 Accounts Receivable Dec. 31...
-
Ohm's law Ohm's law In this activity, you explore the difference between electric current and electric potential. You are given the equation: V=IR In this activity, V, voltage ranges from 0.1 V to 9...
-
Document a brief analysis of the policy and thoroughly address each of the items below in your initial post. Describe the health policy you selected and reviewed. Did the policy clearly identify...
-
Need help with CRUD what am i missing? need to add the update function and delete function here is my file In [2]: from Animal Shelter import Animal Shelter #data ("animal_type":"Basset Hound"}...
-
(2+x Let f(x) = x ifx < -2 if -2 x < 2. (6-x if x 2 Sketch the graph of f.
-
Kenneth Hubbard has prepared the following list of statements about managerial accounting and financial accounting. 1. Financial accounting focuses on providing information to internal users. 2....
-
Mike sells his home to Jane on April 2, 2012. Jane pays the property taxes covering the full calendar year in October, which amount to $2,500. How much may Mike and Jane each deduct for property...
-
On September 14, 2012, Jay purchased a passenger automobile that is used 75 percent in his accounting business. The automobile has a basis for depreciation purposes of $35,000, and Jay uses the...
-
Sally hires a maid to work in her home for $250 per month. The maid is 25 years old and not related to Sally. During 2012, the maid worked 10 months for Sally. a. What is the amount of Social...
-
Kensington Corp. makes gourmet brownies. Brownies are produced in a three-stage process. In the Baking Department, the raw materials for the brownies are mixed, poured into large trays, and baked. In...
-
Only Chips specializes in making two types of chip cookies, semi-sweet and butterscotch, and delivering them to customers while they are still warm from the oven. The butterscotch cookies tend to be...
-
In using activity-based management techniques, management would be most likely to try to eliminate or reduce which of the following activities? (Which activity adds the least value from the...
Study smarter with the SolutionInn App