class Persoana {
// Instante variabile
String nume;
int varsta;
// Clasele pot contine
// 1. Date
// 2. Metode
void vorbeste() {
for(int i=0; i<3; i++) {
System.out.println("Numele meu este: " + nume + " si eu am " + varsta + " de ani ");
}
}
void spuneBuna() {
System.out.println("Buna!");
}
}
public class App {
public static void main(String[] args) {
// Creaza un obiect al clasei Persoana
Persoana persoana1 = new Persoana();
persoana1.nume = "Valentin Popescu";
persoana1.varsta = 30;
persoana1.vorbeste();
persoana1.spuneBuna();
// Creaza al doilea obiect al clasei Persoana
Persoana persoana2 = new Persoana();
persoana2.nume = "Ana Maria";
persoana2.varsta = 20;
persoana2.vorbeste();
persoana2.spuneBuna();
System.out.println(persoana1.nume);
System.out.println(persoana2.nume);
}
}
Output:
Numele meu este: Valentin Popescu si eu am 30 de ani
Numele meu este: Valentin Popescu si eu am 30 de ani
Numele meu este: Valentin Popescu si eu am 30 de ani
Buna!
Numele meu este: Ana Maria si eu am 20 de ani
Numele meu este: Ana Maria si eu am 20 de ani
Numele meu este: Ana Maria si eu am 20 de ani
Buna!
Valentin Popescu
Ana Maria
http://prednisonebestprice.pro/# prednisone 60 mg daily
I was suggested this web site by my cousin Im not sure whether this post is written by him as no one else know such detailed about my trouble You are incredible Thanks
generic zithromax medicine: zithromax online australia – generic zithromax india
Здравствуйте!
Купить диплом о высшем образовании.
islider.ru/read-blog/564
does tamoxifen make you tired: where to get nolvadex – tamoxifen brand name
온라인 슬롯 추천
월간 패스를 요청하고 지원을 요청하십시오. 이번 달의 월간 패스는 정말 설명하기 어렵습니다.
prednisone 250 mg: online order prednisone 10mg – prednisone canada pharmacy
order zithromax without prescription: zithromax 500 without prescription – zithromax purchase online
prednisone 50 mg tablet cost: prednisone 10mg buy online – prednisone 5093
buy cytotec pills online cheap: buy cytotec – buy misoprostol over the counter
Привет, друзья!
Официальная покупка диплома вуза с сокращенной программой в Москве
tanhashop.com/category/uncategorized/page/2
Всегда вам поможем!.
5 prednisone in mexico 10 mg prednisone drug prices prednisone
cytotec online cytotec buy online usa buy cytotec in usa
buy cytotec over the counter: buy cytotec – Abortion pills online
buy cytotec pills online cheap Abortion pills online order cytotec online
pct nolvadex: tamoxifen generic – who should take tamoxifen
http://cytotecbestprice.pro/# Misoprostol 200 mg buy online
http://nolvadexbestprice.pro/# nolvadex pct
Добрый день!
Как получить диплом о среднем образовании в Москве и других городах
sex8.zone/home.php?mod=space&uid=9145316&do=profile
Всегда вам поможем!.
tamoxifen medication tamoxifen bone density tamoxifen postmenopausal
http://cytotecbestprice.pro/# buy cytotec online
https://cytotecbestprice.pro/# buy misoprostol over the counter
order cytotec online: Abortion pills online – buy cytotec pills online cheap
Привет!
Быстрое обучение и получение диплома магистра – возможно ли это?
rushkadiplomik.ru
Добрый день!
Приобрести диплом любого университета.
laporteproperty.com/en/cb-profile/pluginclass/cbblogs?action=blogs&func=show&id=126
https://zithromaxbestprice.pro/# zithromax online usa no prescription
http://propeciabestprice.pro/# cost of cheap propecia online
order cheap propecia pill: cost of cheap propecia online – buying propecia
zithromax purchase online: zithromax online no prescription – zithromax for sale usa
purchase cytotec order cytotec online buy cytotec over the counter
http://nolvadexbestprice.pro/# is nolvadex legal
Привет!
Заказать документ университета можно в нашей компании в Москве.
asxdiplomik.com/kupit-diplom-krasnodar
buy cytotec over the counter п»їcytotec pills online Cytotec 200mcg price
buying propecia without rx order cheap propecia pills cheap propecia without prescription
https://nolvadexbestprice.pro/# tamoxifen and depression
zithromax for sale 500 mg: zithromax buy – zithromax buy
Heya i’m for the first time here. I found this board
and I find It truly helpful & it helped me out much. I am hoping to present something again and aid others such as you helped
me.
my web-site look at these guys
buy propecia without prescription get generic propecia without insurance cost of propecia without rx
ordenar medicamentos en São Paulo Interpharm Amiens Comprimidos genéricos
https://zithromaxbestprice.pro/# average cost of generic zithromax
prednisone 5 mg brand name: prednisone prices – prednisone
http://zithromaxbestprice.pro/# zithromax generic price
cost cheap propecia without prescription order generic propecia without dr prescription cost of generic propecia without prescription
https://propeciabestprice.pro/# order propecia for sale
http://cytotecbestprice.pro/# purchase cytotec
medicijnen verkrijgbaar in apotheek van België edigen Küssnacht Acquista farmaci senza prescrizione in Emilia-Romagna,
Italia
https://prednisonebestprice.pro/# buy prednisone without a prescription
You write with such passion and clarity, it’s like listening to a love song for the mind.
cheap propecia without a prescription: order propecia for sale – propecia cost
medicamentos en venta en Marruecos Globo Veracruz medicamentos disponible sin receta en farmacia de Guayaquil