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
zzz [600]
3 years ago
12

All phones must have a way of making and then terminating a connection to the phone network; however the exact procedure for doi

ng so depends upon the nature of the phone (e.g. landline, cell phone, satellite phone). Write a abstract class, Phone, that contains a string instance variable, phoneNumber, a constructor that accepts a string parameter initializing the instance variable, an accessor method, getPhoneNumber, that returns the phoneNumber, a toString method that return the phoneNumber in the form #(phoneNumber), and two abstract methods: a boolean-valued method named createConnection that returns a boolean and accepts an reference to an object of type Network, and a void-returning method, closeConnection, that accepts no parameters
Computers and Technology
1 answer:
lorasvet [3.4K]3 years ago
7 0

Answer:

Java class is given below

Explanation:

public abstract class Phone

{private

String phoneNumber;

public Phone(String phoneNumber)

{

this.phoneNumber = phoneNumber;

}

public String getPhoneNumber()

{

return this.phoneNumber;

}

public String toString()

{

return "#("+this.phoneNumber+")";

}

public abstract boolean createConnection(Network n);

public abstract void closeConnection();

}

You might be interested in
How much data can a flash drive store?​
zzz [600]

Answer:

depends on which flash drive

Explanation:

32GB-1000 photos

6 0
3 years ago
Read 2 more answers
What is the best web browser to use?
tiny-mole [99]
That would depend on what you would like to get out of your experience with the web broswer. Google chrome offers more efficient computational algorhythms, a quicker navigation of the UI, but loses privacy due to the connected google services which can report your data usage if not properly configured.Browsers like firefox offer extension capability (the same as google chrome) and is open sourced, but may be slower to navigate depending on user to user experience.Other browsers i would avoid unless they are: TOR (which is still just a heavily modified and secured version of firefox).
6 0
3 years ago
Read 2 more answers
What are the two basic literary forms?
Korolek [52]
Fiction and nonfiction
6 0
3 years ago
What is the correct order of precedence of the mathematical operators?
LenaWriter [7]
A common technique for remembering the order<span> of </span>operations<span> is the abbreviation "PEMDAS", which is turned into the phrase "Please Excuse My Dear Aunt Sally". It stands for "Parentheses, Exponents, Multiplication and Division, and Addition and Subtraction".</span>
7 0
4 years ago
Why are salaried employees often excluded from overtime pay
lyudmila [28]

The reason why salaried employees often excluded from overtime pay because  if they are able to make a given amount or carry out a specific duties that are not recognized, they are said to be not eligible for overtime pay.

<h3>Do salaried employees get paid overtime?</h3>

A salaried employee is one that gets paid due to different kinds of work. They can be paid overtime unless there is a reason that they do not meet the test for exempt status as stated in the  federal and state laws.

Note that they are not eligible if they are specifically exempted from any form of overtime by the provisions that were given in the California Labor Code or the Industrial Welfare Commission Wage Orders that is known to be regulating wages, hours as well as working time.

Hence, The reason why salaried employees often excluded from overtime pay because  if they are able to make a given amount or carry out a specific duties that are not recognized, they are said to be not eligible for overtime pay.

Learn more about overtime pay from

brainly.com/question/19022439

#SPJ1

5 0
2 years ago
Other questions:
  • What are two characteristics of a scalable network? (choose two.)?
    5·1 answer
  • Discuss how the use of standard web component layouts and templates influences the visual design of a web page. In your opinion,
    9·1 answer
  • Which statement about word processing software is true?
    11·1 answer
  • Adjusting the ______ adjusts the difference in appearance between light and dark areas of the photo.​
    6·1 answer
  • Which term is used to describe individuals who want to attack computers yet lack the knowledge of computers and networks needed
    12·1 answer
  • Which of the following patterns should be used for the delimiter to read one character at a time using a Scanner object's next m
    7·1 answer
  • Consider the following two code segments. In both, assume that n is an integer variable that has been declared and initialized.
    10·1 answer
  • What is the difference between being an affiliate and an independent station ?what are the benefits to being an affiliate
    9·1 answer
  • Help with Java, please!
    5·1 answer
  • Write a function that takes a list and returns its first element​
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!