0% found this document useful (0 votes)
40 views1 page

Java Keyboard Class Implementation

The document defines a Keyboard class with string, boolean and integer fields for type, backlight and weight, and getter methods for each field.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views1 page

Java Keyboard Class Implementation

The document defines a Keyboard class with string, boolean and integer fields for type, backlight and weight, and getter methods for each field.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

package ru.

skillbox;

public class Keyboard {


private final String type;
private final boolean backlight;
private final int weight;

public Keyboard(String type, boolean backlight, int weight) {


[Link] = type;
[Link] = backlight;
[Link] = weight;
}

public String getType() {


return type;
}

public boolean isBacklight() {


return backlight;
}

public int getWeight() {


return weight;
}
}

You might also like