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
Lena [83]
4 years ago
13

A class defined by a user (i.e., you, the programmer programmer) ... Group of answer choices might contain no data members -- on

ly methods. might contain no user-defined methods -- only data members. will result in compiler errors if no user-defined methods -- only data -- are in the class. will result in compiler errors if no data-- only user-defined methods -- are in the class. will always have both data members and methods.
Computers and Technology
1 answer:
Y_Kistochka [10]4 years ago
4 0

Answer:

might contain no user-defined methods -- only data attributes (members).

might contain no data attributes (members) -- only methods.

You might be interested in
Design and implement your own simple class to represent any household item of your choice (toaster, fan, hair dryer, piano ...)
emmasim [6.3K]

Answer:

class fan{

   private String model;

   private boolean isOn;

   //Constructor goes here

   public fan(String model, boolean isOn) {

       this.model = model;

       this.isOn = isOn;

   }

   // An additional method goes here

   public boolean turnOn(boolean yes){

       if(yes) {

           this.isOn=true;

           System.out.println("Fan is blowing");

           return true;

       }

       else

           this.isOn=false;

           System.out.println("Fan is off");

           return false;

   }

}

Explanation:

Demonstrating the working of the class in a main method. Below is a complete code

public class fanTest {

   public static void main(String[] args) {

fan fan1 = new fan("Binatone", false);

       fan1.turnOn(false);

   }

}

class fan{

   private String model;

   private boolean isOn;

   //Constructor goes here

   public fan(String model, boolean isOn) {

       this.model = model;

       this.isOn = isOn;

   }

   // An additional method goes here

   public boolean turnOn(boolean yes){

       if(yes) {

           this.isOn=true;

           System.out.println("Fan is blowing");

           return true;

       }

       else

           this.isOn=false;

           System.out.println("Fan is off");

           return false;

   }

}

8 0
3 years ago
Fill in the blank with the correct term.
frozen [14]
Its bubble sort!!! Thats my final answer! Youre welcome
8 0
3 years ago
Read 2 more answers
I
Naily [24]

Answer:

True

Explanation:

Not(False) OR False = True OR False = True

4 0
3 years ago
A_____refers to the entire Excel file
Veronika [31]
Answer:  workbook

Explanation:
A workbook is the file that holds several worksheets.
The worksheets within a workbook can communicate with each other within the workbook or with other workbooks and their worksheets.
A worksheet within a workbook holds cells that are defined by rows and columns. Worksheets within a workbook can removed and new worksheets can be added.
8 0
3 years ago
____ is an iterative software development process that focuses on team productivity and delivers software best practices to all
cluponka [151]

Answer:

RUP

Explanation:

RUP or Rational Unified Process is an IBM's software that divides the development process in four phases. It was developed to work throughout the entire software development life cycle, it's adaptive.

I hope you find this information useful and interesting! Good luck!

5 0
4 years ago
Other questions:
  • Don is the superintendent of the county school system. What task might Don
    8·1 answer
  • Excel assigns the name ____ to the first excel table created in a workbook.
    10·1 answer
  • The help desk received a call from a user who cannot get any print jobs to print on the locally shared printer. While questionin
    10·2 answers
  • Which method of accessing FTP has the most limited capabilities?
    9·2 answers
  • Data cannot be sorted or filterd accuratly if there are ________.
    12·1 answer
  • Why might reading a product review be a good idea before purchasing a product?
    5·2 answers
  • IT specialists must display technical expertise and collaborative proficiency in the workplace. Select the IT specialist who dem
    7·1 answer
  • A host is on the 192.168.146.0 network that has a subnet mask of 255.255.255.0. The binary value of the host portion is 11010101
    8·1 answer
  • True false.
    10·2 answers
  • Add me on Fortnite. Epic is smashman892. *Ik it sux but it's an old account* Comment ur epic
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!