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
labwork [276]
3 years ago
8

Consider the following classes: public class Vehicle {...} public class Car extends Vehicle {...} public class SUV extends Car {

...} Self-Check Problems 617 Which of the following are legal statements? a. Vehicle v = new Car(); b. Vehicle v = new SUV(); c. Car c = new SUV(); d. SUV s = new SUV(); e. SUV s = new Car(); f. Car c = new Vehicle();
Computers and Technology
1 answer:
Kitty [74]3 years ago
7 0

Answer:

Legal statements:

      SUV s = new SUV();

      Car c = new SUV();

      Vehicle v = new SUV();

      Vehicle v1 = new Car();

illegal statements:

      SUV s1 = new Car();

      Car c1 = new Vehicle();

Explanation:

The options a, b, c, d are correct and legal statements because the syntax is correct, they follow the inheritance principles and therefore can be used for type cast.

The options e, f are incorrect and illegal statements because they do not follow the inheritance principles and therefore can not be used for type cast.

You might be interested in
The reason why our computers can get faster without getting bigger is because of...
Anni [7]
Almost positive it’s A. Moore’s law
3 0
3 years ago
Given the business rule "an employee may have many degrees," discuss its effect on attributes, entities, and relationships. (Hin
ser-zykov [4K]

Answer:

Executing multivalued attribute in

database:

Multivalued attributes are not directly

implemented in Relational Database,

instead of that follow the below possible

actions:

Explanation:

Multivalued Attributes

A multivalued attribute of an entity is an attribute that can have more than one value associated with the key of the entity. ... If attributes are restricted to be single valued only, the later design and implementation decisions will be simplified.

Example:

Consider a person can have multiple

degrees values like BSC, MCA and these

values can be stored in single attribute in a

database.

6 0
4 years ago
Show what this program prints. Be exact and complete. Can you explain the behavior of each print statement? 1 2 3 4 5 6 7 public
KengaRu [80]

Answer:

39 + 3

42

393

Explanation:

In this line System.out.println("39 + 3"), the quotation marks are used to delimit a string, then when printed in the console the string is printed as-is.

In the next line: System.out.println(39 + 3), without the quotation marks, the 39+3 is treated as a normal addition and prints the result of the operation.

In the last line printed with the code System.out.println("39" + 3,; the symbol + is used to concatenate the string 39 with the number 3, since the string has no spaces they are printed together.

3 0
3 years ago
True or false An electronic form uses input fields in which the user can enter data from their own computer and then transmit t
miskamm [114]

Answer:

The answer to this question is given below in the explanation section.

Explanation:

An electronic form uses input fields in which the user can enter data from their own computer and then transmit the form back to the company - (True)

Yes, it is true, because an electronic form that contains input fields which is used to collect data from the user. The input fields in the electronic form are based on the requirement of the organization about what they want to collect from their user.

For example, when you signup on google account, google company wants to know about your authentication. So the user enters the data in input fields such as first name, last name, phone number etc. When the user clicks on the submit or signup button, all these input values are then transmitted back to the company (google).

7 0
3 years ago
Think of a recent occasion when you became upset with a friend or family member. How did you handle the situation? How did you c
bekas [8.4K]

Answer:

You would identify the problem together with the person or persons involved.

Explanation:

4 0
3 years ago
Other questions:
  • Write thanks to the IT teacher at the end of grade 5
    7·1 answer
  • Hey I don’t have a question I’m just testing something on this app
    6·2 answers
  • Which of the following statements is true with regards to satellite Internet access?
    13·2 answers
  • What do character formats do for your document's message? A. Set how text aligns within a document B. Provide organization C. Pr
    6·2 answers
  • Microsoft's
    8·1 answer
  • A recommended cleaner for the bowls of coffee brewers is
    7·1 answer
  • The first commercially available digital camera was which of the following?
    9·1 answer
  • PLEASE HURRY!!!!
    8·2 answers
  • Silas develops this algorithm to compute the calories burned for an activity for a given number of minutes and body weight: If t
    6·1 answer
  • Figure out what this says:<br><br> ?driew tib a kool ti seoD
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!