1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Oliga [24]
4 years ago
13

2. You have classes to represent different shapes (see below). You realize you can benefit from inheritance and polymorphism by

creating a superclass for all shapes. a. Create such a superclass. b. Did you choose an abstract class or an interface for your answer to part a? c. Why did you make this choice?
Computers and Technology
1 answer:
Keith_Richards [23]4 years ago
6 0

Answer:

The description for the given question is described in the explanation section below.

Explanation:

a...

interface Shape

{

public double getArea();    // creating a function

public double getPerimeter();   // creating a function

}

b and c...

  • I preferred Interface although abstract classes are being used when children's classes associate certain aspect methods and variables and because all classes represent a certain method throughout the specific solution, not instance variables, it would be easier to construct an interface.
  • Almost all of the period interfaces are favored because they have multiple inheritance capabilities.

You might be interested in
A search engine that crawls uses
RoseWind [281]

Answer:

web crawlers or spider software

Explanation:

A search engine that crawls uses the web crawler or the spider software. And it also uses the server side JavaScript based crawlers and programming languages like Python and PHP. The search engine finds the content category through the meta keywords and directs the page to the index. The index contains details of similar types of pages, And each page has one category, and if category is not found which is rarest, a new category is being created.

7 0
4 years ago
30 POINTS!!!! HELPPPPP!!! in computer science, what does the term inference mean?
algol [13]

Answer:

a

Explanation:

the act or process of reaching a conclusion about something from known facts

4 0
2 years ago
Read 2 more answers
List five function key<br> list two alphabet key<br>byEmmanuel okorie​
Tanya [424]

Explanation:

Function keys:F1,F2,F3,F4

Alphabetic keys H,A

5 0
3 years ago
Philip is thinking about customizing his motorcycle. A paint job, saddlebags, and a radio would cost $600. His motorcycle is old
Vikki [24]

Answer:

He will temporarily have less money in his bank account is the correct answer.

Explanation:

Philip is considering customizing his motorcycle. A saddlebags, a paint job, and a radio will cost $600. His motorcycle is vintage, so he already realized maybe sometime in the past two years he would required to get any other bike. To analyze the options, he builds a cost-benefit analysis table. He considers this, he might have less funds at that moment in his banking account.

7 0
4 years ago
PLZ HELP ME I WILL GIVE BRAINLIST!!! Why was the Internet originally constructed?
pochemuha

Answer:

C. to provide online search capabilities

Explanation:

The first workable prototype of the Internet came in the late 1960s with the creation of ARPANET, or the Advanced Research Projects Agency Network. Originally funded by the U.S. Department of Defense, ARPANET used packet switching to allow multiple computers to communicate on a single network.

5 0
3 years ago
Other questions:
  • What would make this comparison statement False? Complete with the appropriate relational operator. "G" _____= "G"
    10·1 answer
  • Whenyou connect two batteries in a series, you add the voltages available in each battery and get the total voltage available to
    5·1 answer
  • Which protocols are TCP/IP application layer protocols? (choose all that apply)
    5·2 answers
  • How are engineers are related to technology
    13·1 answer
  • What is the best overall approach to education and career development for IT professionals?
    14·2 answers
  • Write a method called consecutive that accepts three integers as parameters and returns true if they are three consecutive numbe
    8·1 answer
  • It is considered good practice to save a presentation before printing it. true false
    13·1 answer
  • describe at least five ways in which information technology can help studying subjects other than computing​
    6·1 answer
  • Term of The surroundings and conditions of your workplace
    6·1 answer
  • Hyperlink is a term used to refer to the specific manner of specifying the address of a website. Write reason for true or false.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!