class cs203{
String TeacherName;
int Time;
cs203(String Ner, int tsag) //tsag=3
{
Time=tsag; //Time=3
TeacherName=Ner;
}
cs203(String Ner)
{
TeacherName=Ner;
}
public void myfunction(){
String myInfo;
hicheel.DisplayAll();}
public void DisplayAll2()
{
String ovog;
int nas;
myfunction();
System.out.println("Minii ovog: "+ovog+" Minii nas: "+nas);
}
public String DisplayAll()
{
String Ovog;
int Nas;
String Utga="Minii ovog: "+ovog+" Minii nas: "+nas;
return utga}
public getTime()
{return Time;}
public setTime(int Tsag)
{Time=Tsag;}
public class CS203lab{
public static void main (String []args)
{
cs203 hicheel = new cs203(args[0],args[1]);
cs203 hicheel2 = new cs203("BoldErdene");
cs203 hicheel3 = new cs203();
}
}
}
Tuesday, February 23, 2010
Байгуулагч арга жишээ src
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment