So as part of my IT project I have to do a method class. I already did this but am finding trouble to complete it. When i checked the notes i found something about the get and set method. Can anyone help me pls by showing how the first one is made or just by telling what i should do?
public class MethodClassProject
{
Integer Id ;
String Brand ;
String Price ;
String Size ;
String Quantity ;
String Code ;
String Color ;
String Style ;
void setId (int userId)
{
Id = userId ;
}
void setBrand (String userBrand)
{
Brand = userBrand ;
}