Arag
-
What to buy in Mongolia? People usually buy cashmere scarfs, clothes,
magnets, leather wallets etc.
But not many people know about arag which was used to c...
1 year ago
blog={"keyword"='Java, OOP, IEP', "author":'CSMS', "code"='CS203', "season"='Spring/2011', "week"=null}
// Doorh jishee code ni class, gishuun function, gishuun
// ugugdul, baiguulagch function herhen ashiglah tuhai
// uzuulne.
// ajluulahdaa // javac lab01.java // java lab01 class Student { public String Ovog; public String Ner; Student (String First, String ner){ Ovog=First; Ner=ner; } Student() {} Student (String ovog){ Ovog=ovog; } public String OvgiigDuud() { return Ovog; } public String getNer() { return Ner; } } public class lab01 { public static void main (String args[]){ Student oyutan = new Student (); oyutan.Ovog="Dorj"; oyutan.Ner="Bataa"; Student oyutan2= new Student ("Dorj", "Bataa"); Student oyutan3= new Student ("Dorj"); System.out.println("Oyutanii ovog: "+oyutan.OvgiigDuud()+"\nOyutanii ner "+oyutan.getNer()); } }