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
Ghella [55]
4 years ago
8

Objects of the BankAccount class require a name (string) and a social security number (string) be specified (in that order) upon

creation. Define an object named account, of type BankAccount, using the values "John Smith" and "123-45-6789" as the name and social security number respectively.
Computers and Technology
1 answer:
Grace [21]4 years ago
5 0

Answer:

BankAccount account= new BankAccount("John Smith","123-45-6789");

Explanation:

This is how to define an object of a class, in this case BankAccount. You call the class constructor which sets the value for it.

You might be interested in
the corrective actions you need to perform on a computer in case it functions in an unexpected manner is called what
Vadim26 [7]
These actions are called troubleshooting. One of the first ones would be to save your work, if you can, close all open programs and then shut down your computer (not restart). Wait a couple if minutes, start and see if the problem has been alleviated.
5 0
4 years ago
Which of the following statements is true?
Free_Kalibri [48]
C, <span>Word processing can be used to create databases of information.</span>
7 0
3 years ago
Read 2 more answers
Write the one Sale method of the GroceryStore class. Method oneSale has one parameter: the name of one product (that a customer
DIA [1.3K]

Answer:

Check the explanation

Explanation:

bool oneSale(string item){

for(int i=0;i<capacity;i++){ // iterate till the capcity of array

if(item==grocerryList[i].name()){ // if name matches

 if(grocerryList[i].getStock()>0){ // and stock is greater than 0

  grocerryList[i].setStock(grocerryList[i].getStock()-1); // subtract 1 from the stock

// or alternate is grocerryList[i].stock= grocerryList[i].stock-1;

 return true; // return true

}

}

else if(item==grocerryList[i].name()){ // if name matches

 if(grocerryList.getStock()==0){ // but stock is empty

 return false; // return falsse

}

}

else{ // means item is not available so there is no need to check stock

return false; // return false

}

}

}

8 0
3 years ago
Why is contrast important when designing a web page
Phantasy [73]

Contrast is important when designing a web page for many reasons. One of the most important reasons is because if you don't have contrast, you won't be able to read what is written on the page. Your eyes will have to strain really hard or it just simply won't be possible to read at all. Another really important reason is that contrast makes the web page look visually appealing. Whereas, if you don't have contrast it is all kind of jumbled together. As you can see there is a plethora of reasons contrast is important.

I hope that helps u!!

:)

8 0
3 years ago
In what cattell called the ____ form of factor-analysis, large amounts of data are collected on one subject over a long period.
True [87]
The P technique. 


Good luck! (:
3 0
4 years ago
Other questions:
  • His function starts a new session.
    12·1 answer
  • Are video games considered information technology
    9·2 answers
  • Select the correct statement about data preparation.
    10·1 answer
  • When you right-click certain areas of the Word or other Office app windows, a command menu will appear. Group of answer choices
    13·1 answer
  • The transmission method that sends data to every device on a lan is known as a _____ transmission.
    8·2 answers
  • How many Pokemon have only one type? In other words, for how many Pokemon is Type2 blank?
    6·1 answer
  • A weighted GPA counts__more highly.
    12·1 answer
  • The power saving state that saves all work to the hard drive and powers down the system is known by what term?
    11·1 answer
  • ELO 3.6 Which type of iSCSI name requires a registered domain name to generate a unique iSCSI identifier?
    12·1 answer
  • If a touch screen chrome is not charging what is wrong with it
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!