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
gtnhenbr [62]
3 years ago
15

Which of the following class definition defines a legal abstract class Group of answer choices public class Rectangle abstract {

public abstract double findArea ( ); } public abstract class Rectangle { public abstract double findArea ( ); } public class Rectangle { public abstract double findArea ( ); } public class abstract Rectangle { public abstract double findArea ( ); }
Computers and Technology
1 answer:
valkas [14]3 years ago
7 0
<h2>Question</h2>

Which of the following class definition defines a legal abstract class Group of answer choices

(a)

public class Rectangle abstract {

   public abstract double findArea ( );

   

}

(b)

public abstract class Rectangle {

   public abstract double findArea ( );

   

}

(c)

public class Rectangle {

   public abstract double findArea ( );

   

}

(d)

public class abstract Rectangle {

   public abstract double findArea ( );

   

}

<h2>Answer:</h2>

(b)

public abstract class Rectangle {

   public abstract double findArea ( );

}

<h2>Explanation:</h2>

When a class is declared with the abstract keyword, the class is called an abstract class. Abstract classes cannot be instantiated and may include one or more abstract methods. If a class contains an abstract method, then it (the class) must be declared abstract.

In Java, abstract classes are defined using the following format:

<em>[access_modifier]</em> abstract class <em>[name_of_class]</em>

[access_modifier] specifies the access modifier of the class which could be public, private, e.t.c

abstract is the keyword that specifies that the class is an abstract class.

class is a keyword used for defining classes

name_of_class specifies the name of the class.

The only option that fulfils this format is <em>option b</em> where;

(i) The access modifier is public

(ii) The name of the class is Rectangle

Option a is not correct because the <em>abstract</em> keyword is supposed to come before the <em>class</em> keyword.

Option c is not correct because the keyword <em>abstract</em> is missing. In other words, the class must be declared abstract since it contains abstract method findArea();

Option d is not correct because the <em>abstract</em> keyword is supposed to come before the <em>class</em> keyword.

You might be interested in
Create two algorithms for an everyday problem such as computing sales tax or figuring out the number of tables to seat guests. T
tamaranim1 [39]

Answer:

b

Explanation:

3 0
3 years ago
web pages within the same website often have different blank because they have different blank A) home pages, urls B) goals, sou
jenyasd209 [6]

Answer:

D

Explanation:

Home page will not usually be formatted the same as the contact page because each page has a different purpose

8 0
4 years ago
Algorithm to calculate the sum and difference of 15 and 12​
lisov135 [29]
If you’re using python

X = 15
Y= 12

Def sum_dif_num(X,Y):
Sum = X+Y
Dif = abs(X-Y)
Print(Sum)
Print(Dif)
3 0
2 years ago
What is an umbrella of software programs that may include​ CAD/CAM, product​ routing, maintenance, and other product​ concerns?
Andrew [12]

Answer:

Product lifecycle management software

Explanation:

Characteristics.

  • Complete set of tools to establish decision criteria regarding the portfolio and simulations for  product planning.
  • It allows the standardization and automation of the processes of request of alterations in the product, controlling the  decisions, deadlines and ensuring traceability.
  • Improves efficiency in product design.
  • <em>Example SoftExpert PLM </em>is an accessible, easy-to-use and completely web solution for managing the life cycle of  products.
6 0
4 years ago
Energy/power management systems, kitchen appliances, smart televisions, baby monitors, fitness trackers, and personal health mon
boyakko [2]

Energy/power management systems, kitchen appliances, smart televisions, baby monitors, fitness trackers and personal health monitor are examples of internet of things.

What is meant by Internet of Things?

The Internet of Things (IoT) is known to be a term that connote the network of physical objects that are placed on or have sensors, software, etc.

Its involves technology that allows to add a device to an inert object such as plant electronic systems, roofs, lighting, that can measure environmental parameters, generate associated data and transmit them through a communications network.

Therefore, the Option C is correct.

Missing options "Client-server systems Servers Internet of Things None of the above"

Read more about Internet of Things

brainly.com/question/19995128

#SPJ1

THANKS

0

0.0

(0 votes)

Unlocked badge showing two hands making the shape of heart over a pink circle

Found this answer helpfu

5 0
2 years ago
Other questions:
  • Give a big-O estimate for the number of comparisons used by the algorithm that determines the number of 1s in a bit string of le
    9·2 answers
  • When federal courts are evaluating digital evidence from computer-generated records, what exception is applied to hearsay?'
    13·1 answer
  • Two of the goals of community mobilization are getting the community interested and
    6·1 answer
  • For this lab, youhave to write a programnamedseriesFunction.cthat prompts user to enter two values, x and n. Then it would use a
    11·1 answer
  • Is techonalygy harmful or useful
    6·2 answers
  • Which characteristic describes a flash lighting setup?
    6·1 answer
  • What methods would you add to make this class declarationvery useful?
    11·2 answers
  • Can someone help plz, I’d really appreciate it
    7·1 answer
  • Select the functions in the Insert tab in PowerPoint.
    8·1 answer
  • Apart from mATX and ATX what are the other form factors of power supply
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!