subject

Olga is working on a class named House. She wants to create a method that returns the value of price. What type of method should she use? public class House {

private int sqft, bedrooms, bathrooms, number;
private double price;
private string street;

public Street() {

sqft = 1000;
bedrooms = 1;
bathrooms = 1;
street = “Main St.”;
number = 1234;

}

}

A. int
B. string
C. double
D. void

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 07:30
An endless cycle of creation and response on the internet is called
Answers: 1
question
Computers and Technology, 22.06.2019 14:30
Create a pseudocode design to prompt a student for their student id and the titles of the three classes they want to add. the solution should display the student’s id and a total bill. • bill a student using the following rules: o students can only add up to 3 classes at a time.
Answers: 3
question
Computers and Technology, 23.06.2019 13:30
Font size, font style, and are all aspects of character formatting.
Answers: 2
question
Computers and Technology, 24.06.2019 22:30
Telling a computer that is already on to turn again is known as what type of boot?
Answers: 1
You know the right answer?
Olga is working on a class named House. She wants to create a method that returns the value of price...
Questions
question
Mathematics, 17.10.2019 07:10
question
Spanish, 17.10.2019 07:10