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
Readme [11.4K]
3 years ago
8

Which of the following are incorrect? Group of answer choices An interface can contain constructors. You may declare a final abs

tract class. The constructors in an abstract class should be private. An abstract class can contain constructors.
Computers and Technology
2 answers:
spin [16.1K]3 years ago
6 0

Answer:

Explanation:

1. The answer is No, interface cannot have constructors. ... In order to call any method we need an object since there is no need to have object of interface, there is no need of having constructor in interface (Constructor is being called during creation of object).

2.A final class is considered complete and can not be subclassed (It's methods can not be overridden ). In case of abstract class, we have to proved implementation to abstract methods in subclasses. A final class can not have abstract methods and an abstract class can not be declared final.

3.private constructors are acceptable, however the class should be marked final instead, as doing so means the class is to be extended.

4.Yes! Abstract classes can have constructors! Yes, when we define a class to be an Abstract Class it cannot be instantiated(i.e an object cannot be created) but that does not mean an Abstract class cannot have a constructor. Each abstract class must have a concrete subclass which will implement the abstract methods of that abstract class.

SCORPION-xisa [38]3 years ago
4 0

<u>Answer:</u>

<u></u>

Incorrect options are;

i. An interface can contain constructors

iii. The constructors in an abstract class should be private.

<u>Explanation:</u>

<em>Option i is incorrect</em>. An interface cannot be instantiated (object cannot be created from it) or extended (classes cannot inherit from it) and as such no constructors are needed.

<em>Option ii is correct</em>. You may declare a final abstract class. This would just mean the class cannot be instantiated and neither can it be extended. That would also mean a redundant class.

<em>Option iii is incorrect</em><em>. </em>A constructor in an abstract class should not be made private (although possible). Otherwise, not only will it not be instantiable, it will also not be extensible.

<em>Option iv is correct</em>. An abstract class can contain constructors. Since abstract classes can be extended, having constructors in them will allow classes, that inherit from them, to be able to create objects from them.

You might be interested in
The ______ clause allows us to select only those rows in the result relation of the ____ clause that satisfy a specified predica
baherus [9]

Answer:

1. Where,

2. From

Explanation:

In SQL query language when working on a database, a user can use certain clauses to carry out some functions.

Hence, The WHERE clause allows us to select only those rows in the result relation of the FROM clause that satisfy a specified predicate.

This is because the "Where clause" selects the rows on a particular condition. While the "From clause" gives the relation which involves the operation.

5 0
2 years ago
Troy, an aspiring screenwriter, aspires to work with a famous director known for his philanthropic work. Troy gets an appointmen
kicyunya [14]

Troy should include a short overview of the story that his video will tell and why he wants to tell it (or what the video will be about and why). It should also include the target audience, and where the video will be published.

7 0
3 years ago
Determine and prove whether an argument in English is valid or invalid. About Prove whether each argument is valid or invalid. F
yawa3891 [41]

Answer:

Each understudy on the respect roll got an A.  

No understudy who got a confinement got an A.  

No understudy who got a confinement is on the respect roll.  

No understudy who got an A missed class.  

No understudy who got a confinement got an A.  

No understudy who got a confinement missed class  

Explanation:

M(x): x missed class  

An (x): x got an A.  

D(x): x got a confinement.  

¬∃x (A(x) ∧ M(x))  

¬∃x (D(x) ∧ A(x))  

∴ ¬∃x (D(x) ∧ M(x))  

The conflict isn't considerable. Consider a class that includes a lone understudy named Frank. If M(Frank) = D(Frank) = T and A(Frank) = F, by then the hypotheses are overall evident and the end is counterfeit. Toward the day's end, Frank got a control, missed class, and didn't get an A.  

Each understudy who missed class got a confinement.  

Penelope is an understudy in the class.  

Penelope got a confinement.  

Penelope missed class.  

M(x): x missed class  

S(x): x is an understudy in the class.  

D(x): x got a confinement.  

Each understudy who missed class got a confinement.  

Penelope is an understudy in the class.  

Penelope didn't miss class.  

Penelope didn't get imprisonment.  

M(x): x missed class  

S(x): x is an understudy in the class.  

D(x): x got imprisonment.  

Each understudy who missed class or got imprisonment didn't get an A.  

Penelope is an understudy in the class.  

Penelope got an A.  

Penelope didn't get repression.  

M(x): x missed class  

S(x): x is an understudy in the class.  

D(x): x got a repression.  

An (ax): x got an A.  

H(x): x is on the regard roll  

An (x): x got an A.  

D(x): x got a repression.  

∀x (H(x) → A(x)) a  

¬∃x (D(x) ∧ A(x))  

∴ ¬∃x (D(x) ∧ H(x))  

Real.  

1. ∀x (H(x) → A(x)) Hypothesis  

2. c is a self-self-assured element Element definition  

3. H(c) → A(c) Universal dispatch, 1, 2  

4. ¬∃x (D(x) ∧ A(x)) Hypothesis  

5. ∀x ¬(D(x) ∧ A(x)) De Morgan's law, 4  

6. ¬(D(c) ∧ A(c)) Universal dispatch, 2, 5  

7. ¬D(c) ∨ ¬A(c) De Morgan's law, 6  

8. ¬A(c) ∨ ¬D(c) Commutative law, 7  

9. ¬H(c) ∨ A(c) Conditional character, 3  

10. A(c) ∨ ¬H(c) Commutative law, 9  

11. ¬D(c) ∨ ¬H(c) Resolution, 8, 10  

12. ¬(D(c) ∧ H(c)) De Morgan's law, 11  

13. ∀x ¬(D(x) ∧ H(x)) Universal hypothesis, 2, 12  

14. ¬∃x (D(x) ∧ H(x)) De Morgan's law, 13  

4 0
3 years ago
A usability study compares the number of page visits on a web site. Half of the participants saw Version A of the home page. The
USPshnik [31]

Answer:

d. A web analytic

Explanation:

Web analytic measure activity and behavior of a user on a website, for example: how many users visit, how long they stay, how many pages they visit, which pages they visit, and whether they arrive by following a link or not.

Ordinal data is a categorical, statistical data type where the variables have natural, ordered categories and the distances between the categories is not known.

Dependent variable rely on another variable to get a value

Independent variable are variable which can be gotten on their own without relying on another variable.

7 0
3 years ago
What is the purpose of the fit to size feature in Word?
Olegator [25]

Answer : computer

Explanation:

please mark me as brilliant

3 0
2 years ago
Other questions:
  • In a student​ database, a row that describes the top​ student, including his or her​ lastname, firstname, and​ studentnumber, is
    9·1 answer
  • &gt;
    6·1 answer
  • You are part of a team that is setting up a movie streaming service. The company is planning on initially making available 500 m
    8·1 answer
  • Sam has created a fashion website. There are many subscribers to his website. He has added new blogs, pictures, and articles abo
    13·1 answer
  • Suppose testcircle1 and circle1 in listing 9.1 are in two separate files named testcircle1.java and circle1.java, respectively.
    14·1 answer
  • What are the OSHA construction standards also called ?
    10·1 answer
  • Why when I put a question in the search bar it says something went wrong?
    9·1 answer
  • 50 points! ㅠㅠ does anyone speak korean or watch korean animes? 안녕 ㅋㅋ ㅇㅅㅇ How do people make animationsss.
    8·2 answers
  • A computing company is running a set of processes every day. Each process has its own start time and finish time, during which i
    11·1 answer
  • Tom is not sure how to code contents such as title and meta elements. These are coded as ____ elements.
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!