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
where to buy cheap clomid prices: how to get generic clomid – cost generic clomid without a prescription
https://arcmetal.ru/
http://prednisonest.pro/# prednisone purchase online
prednisone over the counter australia: mail order prednisone – buying prednisone from canada
mechanism action of ezetimibe
Нужен торговый бот. Какой лучше?
Я покупал здесь https://cryptorobotics.ai/ru/
https://clomidst.pro/# can you buy cheap clomid without dr prescription
Влияние мобильной оптимизации на продвижение сайта
13
seo заказать http://www.seo-prodvizhenie-sayta.co.ua/ .
https://kupitroom.ru/
where can i get amoxicillin 500 mg: can you drink alcohol with amoxicillin – amoxicillin without prescription
сюда Оборудование
смотреть лучшие турецкие сериалы
how to buy clomid without rx: clomid for pct – how to get cheap clomid prices
https://kupithouse.ru/
order generic clomid no prescription: buying clomid prices – cost of clomid without a prescription
can you get generic clomid without dr prescription: get cheap clomid pills – where to buy generic clomid without prescription
how can i get cheap clomid online buying generic clomid no prescription can i get cheap clomid without insurance
http://amoxilst.pro/# generic amoxil 500 mg
can i purchase generic clomid without rx: clomid women – how can i get clomid tablets
Тепловизоры: новинки и тренды на рынке
купить тепловизор http://teplovizor-od.co.ua/ .
prednisone ordering online 50 mg prednisone tablet prednisone cost 10mg
online prednisone: prednisone dosage – prednisone 5mg daily
http://amoxilst.pro/# amoxicillin order online
where to get generic clomid pill: nolvadex vs clomid – can you buy generic clomid without a prescription
Fantastic post however , I was wanting to know if you could write a litte more on this subject? I’d be very thankful if you could elaborate a little bit more. Thanks!
https://lpgtech.ua/dozatory-gaza
It is in reality a nice and useful piece of information. I’m satisfied
that you shared this useful info with us. Please stay us up to date like this.
Thank you for sharing.
турецкие сериалы языке смотреть онлайн бесплатно
https://kupitzhilie.ru/
shopanho.com
그러나 변화를 원한다는 것은 너무 많은 직업을 포함하고 있으며 반등은 확실히 작지 않습니다.
best online pharmacies in mexico Medicines Mexico mexican border pharmacies shipping to usa mexicanpharm.shop
https://indianpharm24.com/# best india pharmacy indianpharm.store
buying prescription drugs in mexico: Mexico pharmacy online – pharmacies in mexico that ship to usa mexicanpharm.shop
http://canadianpharmlk.shop/# canada rx pharmacy world canadianpharm.store
wow, amazing
india pharmacy: cheapest online pharmacy – world pharmacy india indianpharm.store
https://canadianpharmlk.shop/# canadian pharmacy phone number canadianpharm.store
http://indianpharm24.shop/# online shopping pharmacy india indianpharm.store
http://indianpharm24.com/# buy prescription drugs from india indianpharm.store
mexican drugstore online mexican pharmacy mexico pharmacies prescription drugs mexicanpharm.shop
https://canadianpharmlk.com/# canadian pharmacy victoza canadianpharm.store
mexico pharmacies prescription drugs: Mexico pharmacy price list – mexico pharmacies prescription drugs mexicanpharm.shop
top online pharmacy india: Generic Medicine India to USA – buy medicines online in india indianpharm.store
https://canadianpharmlk.com/# canada online pharmacy canadianpharm.store
Thank you for the good writeup It in fact was a amusement account it Look advanced to far added agreeable from you However how could we communicate
https://mexicanpharm24.shop/# mexican border pharmacies shipping to usa mexicanpharm.shop
rate canadian pharmacies: Best Canadian online pharmacy – precription drugs from canada canadianpharm.store
Online medicine home delivery: Pharmacies in India that ship to USA – online shopping pharmacy india indianpharm.store
https://indianpharm24.com/# india online pharmacy indianpharm.store
I am in fact pleased to read this website posts which carries tons of valuable data, thanks
for providing such data.
http://mexicanpharm24.com/# pharmacies in mexico that ship to usa mexicanpharm.shop