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
https://onlinepharmacy.cheap/# online pharmacy discount code
http://diplombiolog.ru/
shopanho.com
가장 중요한 것은 Xie Qian이 자신에게 많은 자신감을 주었다는 것입니다.
canadian pharmacy coupon: online mexican pharmacy – online pharmacy discount code
https://onlinepharmacy.cheap/# pharmacy without prescription
canadian pharmacy no prescription Online pharmacy USA canadian online pharmacy no prescription
How does the scheme of balance of power, business and relationships work?
batmanapollo.ru
https://pharmnoprescription.pro/# how to buy prescriptions from canada safely
erectile dysfunction drugs online: discount ed meds – best ed medication online
http://onlinepharmacy.cheap/# us pharmacy no prescription
prescription drugs canada: online drugstore no prescription – how to get a prescription in canada
buying prescription drugs online canada: canada pharmacy no prescription – buy drugs online no prescription
http://edpills.guru/# best online ed meds
flomax high
http://klublady.ru/
online pharmacy no prescription needed: online pharmacy – canadian pharmacy discount coupon
кракен официальный – кракен, kraken tor зеркало
cheapest online ed treatment order ed meds online buy erectile dysfunction pills online
m3ga gl – mega555net7 com, mega555
https://vsegda-pomnim.com/
withdrawals from effexor
https://edpills.guru/# п»їed pills online
canadian pharmacy discount coupon: Online pharmacy USA – prescription drugs from canada
buy medications without prescriptions: п»їonline pharmacy no prescription needed – mexican prescription drugs online
Грузчики Харькова для любых задач и объемов груза
заказать перевозку с грузчиками gruzchiki.co.ua .
no prescription pharmacy online: buying drugs online no prescription – buy medication online without prescription
buy erectile dysfunction medication: buying erectile dysfunction pills online – where can i buy ed pills
https://zhksaledom.ru/
hoki 1881
https://edpills.guru/# how to get ed pills
ed medication online: buy erectile dysfunction pills – cheapest ed medication
http://onlinepharmacy.cheap/# no prescription pharmacy paypal
hoki1881
canadian pharmacy no prescription Best online pharmacy no prescription pharmacy paypal
https://zhksalehouse.ru/
Wow, superb weblog format! How lengthy have you been running a blog for?
you made blogging look easy. The entire look of your website is great,
as well as the content material! You can see similar here sklep internetowy
https://zhksalezhilie.ru/
https://zhksaleflat.ru/
https://ekbflatkupit.ru/
http://prednisonest.pro/# prednisone 5 mg tablet cost
ttbslot.com
Zhu Houzhao는 솔직하게 말했습니다. „내 장관이 머리를 보증으로 삼을 것입니다.”
azithromycin amoxicillin: order amoxicillin online uk – where to buy amoxicillin 500mg without prescription
buying generic clomid without dr prescription: clomid success rate – where can i buy generic clomid without insurance
https://clomidst.pro/# how to buy cheap clomid price
cost of amoxicillin: amoxicillin-clav – buying amoxicillin online
amoxicillin generic brand: how long does it take for amoxicillin to work – can you purchase amoxicillin online
nice content!nice history!! boba 😀
clomid prices cost of cheap clomid tablets cost cheap clomid without dr prescription
where to get generic clomid without prescription: clomid and twins – can i purchase clomid price
https://prednisonest.pro/# prednisone cream rx