Question

Select all correct options in the list below about concrete and abstract classes Select one or more: a. Concrete classes can
Select all options that are correct as regards the concept of coupling Select one or more: a. Describes how much different un
Select all options that are correct as regards the concept of cohesion Select one or more: a. High cohesion is desirable b. D
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Explanations:

Concrete Class:

A concrete class is a clas that has an implementation for all the methods contained in it and can not essentially have any unimplemented method. It can extend an abstract class or implement an interface as long as it implements all their methods. It is, thus, a complete class and can be instantiated.

Abstract Class:

An abstract class is a class that is declared abstract and it may or may not include abstract methods.They can not be instantiated but can be subclassed.

Precisely, any class that is not abstract is a concrete class.

In the light of the above discussions, each of the first 4 subparts are reviewed as follows:

a. Concrete classes can be instantiated.,,TRUE

b. Abstract claases must contain atleast one abstract method...FALSE ( may or may not contain abstract method)

c. Only concrete classes can be superclasses...FALSE ( abstract classes can be subclassed as well)

d. Abstract classes ( using the "abc" library) can be instantiated...FALSE ( they can not be instantiated)

This answers the first 4 subparts of the question and the other subparts can also be answered similarly based on the explanation as provided above.

Add a comment
Know the answer?
Add Answer to:
Select all correct options in the list below about concrete and abstract classes Select one or...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • PRG/421 Week One Analyze Assignment – Analyzing a Java™Program Containing Abstract and Derived Classes 1.    What is...

    PRG/421 Week One Analyze Assignment – Analyzing a Java™Program Containing Abstract and Derived Classes 1.    What is the output of the program as it is written? (Program begins on p. 2) 2. Why would a programmer choose to define a method in an abstract class (such as the Animal constructor method or the getName()method in the code example) vs. defining a method as abstract (such as the makeSound()method in the example)? /********************************************************************** *           Program:          PRG/421 Week 1 Analyze Assignment *           Purpose:         Analyze the coding for...

  • *related to Matlab Choose the correct statement about Open Methods from the options below. Select one: a. All open methods will work only if you have an analytic expression of f(x) b. All open method...

    *related to Matlab Choose the correct statement about Open Methods from the options below. Select one: a. All open methods will work only if you have an analytic expression of f(x) b. All open methods are based on considering the tangent to f(x) c. All open methods require a bracket to start off d. All open methods require more than one point as initial guesses. In a bracketing method, how does the upper bounds xu gets updated? Select one: a....

  • See Hint Part 2 (0.5 point) Select the correct statements below about the inverse factor demand...

    See Hint Part 2 (0.5 point) Select the correct statements below about the inverse factor demand functions. Choose one or more: A. The inverse factor-demand functions measure how much of an input is demanded at every possible factor price. B. Inverse factor-demand functions are used only in the short run (.e., when at least one input or factor is held constant). C. In the case of two inputs (factors), with one of them being held constant, the inverse factor-demand function...

  • Which statement about generation of reactive oxygen species below is NOT correct? Select one: a. ...

    Which statement about generation of reactive oxygen species below is NOT correct? Select one: a. Hydroxyl radical is formed from hydrogen peroxide O b. Hydroxyl radical can react with lipides O c. Hydroxyl radical can react with DNA and proteins O d. Hydroxyl radical react with hydrogen peroxide O e. Hydroxyl radical react with glutathione Check Estimate how many molecules of ATP is produced from complete oxidation of 1 molecule of tyrosine Answer: Check Which statement about generation of reactive...

  • Y. Daniel Liang’s 8 Class Design Guidelines were posted on the File Manager and handed out...

    Y. Daniel Liang’s 8 Class Design Guidelines were posted on the File Manager and handed out in class. Please choose 5 guidelines and discuss them in depth. For each guideline, use 1 page or more for your discussion. You can use the code provided in class to demonstrate your points. The code should not be more than one-third of your writing. 1. Cohesion • [✓] A class should describe a single entity, and all the class operations should logically fit...

  • Which statement about generation of reactive oxygen species below is NOT correct? Select one: a. Hydroxyl...

    Which statement about generation of reactive oxygen species below is NOT correct? Select one: a. Hydroxyl radical is formed from hydrogen peroxide O b. Hydroxyl radical can react with lipides O c. Hydroxyl radical can react with DNA and proteins O d. Hydroxyl radical react with hydrogen peroxide O e. Hydroxyl radical react with glutathione Check Estimate how many molecules of ATP is produced from complete oxidation of 1 molecule of tyrosine Answer: Check

  • Please choose all that are correct. Select one or more: O a. To maintain the same...

    Please choose all that are correct. Select one or more: O a. To maintain the same acceleration, when the force applied is halved, mass must also be halved O b. If there is only one force acting on an object, that force is equal to the net force O c. A force cannot be negative O d. An object flying through vacuum does not have a normal force acting on O e. Friction is a fundamental force O f. An...

  • 1-Suppose you write an application in which one class contains code that keeps track of the...

    1-Suppose you write an application in which one class contains code that keeps track of the state of a board game, a separate class sets up a GUI to display the board, and a CSS is used to control the stylistic details of the GUI (for example, the color of the board.) This is an example of a.Duck Typing b.Separation of Concerns c.Functional Programming d.Polymorphism e.Enumerated Values 2-JUnit assertions should be designed so that they a.Fail (ie, are false) if...

  • Choose all correct statement: Select one or more: John: "... series centered at x=c" means that...

    Choose all correct statement: Select one or more: John: "... series centered at x=c" means that function f(x) must have symmetry with respect to x=C Sarah: Taylor polynomial and Taylor partial sum both have the same number of terms but polynomial doesn't imply summation while partial sum obviously does. Lucas: Taylor series actually turn f(x) into a complicated combination of multiple functions, i.e. f', f", f"',... not even counting all the powers of (x-c). Emily: Maclaurin series is completely different...

  • I need this in C++. This is all one question. Introduction Your eighth assignment will consist...

    I need this in C++. This is all one question. Introduction Your eighth assignment will consist of two programs, which will involve the use of simple classes. The source code for these problems should be submitted using the naming conventions we specified in class. Please note that your computer programs should comply with the commenting and formatting rules as described in class. For example, there should be a header for the whole program that gives the author's name, class name,...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT