<font color='#000000'>Ok sure Sara
every program can work with out a set, also called mutator, or a get , also called accessor, methods
but we need them if we want to make our attributes or global variables as private so we want to provide a way to other classes using this calss to acces the variables and change them or get their value so we use accessor and mutator which are easy methods
* Get method:
public variabletype get<span style='color:red'>VariableName</span>()
}
return <span style='color:orangered'>variablename</span>;
}
for the Mutator or the set
public void setVariableName(variabletype anewvariablename)
}
variableName = anewvariablename;
{
i never heared of those type of packages but i would think that a core package is when you type like
import java.util.*;
this way you imported every class in the java.util package and you just use whatever class you want .... and that is what i always do because it saves me time and effort to write an import statement for each class i use
and for the extension package i think it would be like import java.util.StringTokenizer;
which only imports the StringTokenizer class
so that is how i understand it but in case i did understand it wrong just let me now and give me examples so i can inshaALLAH explain more
Good Questions Though
GOOD LUCK</font>
مواقع النشر (المفضلة)