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
Youre so cool! I dont suppose Ive learn something like this before. So nice to seek out anyone with some authentic ideas on this subject. realy thank you for beginning this up. this web site is something that is needed on the web, somebody with slightly originality. useful job for bringing something new to the web!
k8 カジノ 招待コード
読むのが楽しみで仕方ない、素晴らしい内容です。
Профессиональный Ремонт компьютеров с гарантией, в городе Воркута по низким ценам ремонт телефонов
https://mexicanpharmacy1st.shop/# mexico pharmacies prescription drugs
Профессиональный Ремонт компьютеров с гарантией, в городе Воркута по низким ценам ремонт ноутбуков Воркута
https://mexicanpharmacy1st.com/# mexico pharmacy
mexican drugstore online: mexico pharmacies prescription drugs – best mexican online pharmacies
https://womenran.com/
https://mexicanpharmacy1st.com/# buying prescription drugs in mexico online
mexican rx online purple pharmacy mexico price list mexico pharmacies prescription drugs
mexican border pharmacies shipping to usa: best mexican online pharmacies – mexican online pharmacies prescription drugs
reputable mexican pharmacies online buying prescription drugs in mexico online medicine in mexico pharmacies
best online pharmacies in mexico: п»їbest mexican online pharmacies – п»їbest mexican online pharmacies
mexican border pharmacies shipping to usa pharmacies in mexico that ship to usa mexico pharmacies prescription drugs
https://mexicanpharmacy1st.shop/# medicine in mexico pharmacies
mexico drug stores pharmacies: best mexican online pharmacies – buying from online mexican pharmacy
https://mexicanpharmacy1st.online/# mexico pharmacy
thephotoretouch.com
물론 그런 경우에는 누구나 감히 그런 말을 하지 않을 것이다.
Does your site have a contact page? I’m having a tough time locating
it but, I’d like to shoot you an e-mail. I’ve got some ideas for your blog you might be interested in hearing.
Either way, great site and I look forward to seeing it expand
over time.
https://mexicanpharmacy1st.shop/# medication from mexico pharmacy
https://mexicanpharmacy1st.online/# pharmacies in mexico that ship to usa
mexican rx online: pharmacies in mexico that ship to usa – mexico drug stores pharmacies
Свадебный фотограф https://alexanderkiselev.ru/ в Москве.
medicine in mexico pharmacies: mexico pharmacies prescription drugs – mexican drugstore online
mexican online pharmacies prescription drugs mexican rx online mexico pharmacies prescription drugs
best online pharmacies in mexico: mexican online pharmacies prescription drugs – best online pharmacies in mexico
mexico drug stores pharmacies: mexico pharmacies prescription drugs – mexican online pharmacies prescription drugs
mexican border pharmacies shipping to usa pharmacies in mexico that ship to usa reputable mexican pharmacies online
buying from online mexican pharmacy: mexican drugstore online – buying prescription drugs in mexico
услуги грузчиков https://gruzchikon.ru/ по доступной цене с гарантией.
https://mexicanpharmacy1st.shop/# п»їbest mexican online pharmacies
mexican mail order pharmacies medicine in mexico pharmacies medicine in mexico pharmacies
purple pharmacy mexico price list: medication from mexico pharmacy – mexican border pharmacies shipping to usa
https://mexicanpharmacy1st.shop/# п»їbest mexican online pharmacies
medication from mexico pharmacy: mexican drugstore online – mexican rx online
https://mexicanpharmacy1st.shop/# mexican rx online
Купить отчет оп практике https://praktikotchet.ru/ по доступной цене с гарантией.
buying prescription drugs in mexico: mexico drug stores pharmacies – mexican online pharmacies prescription drugs
토토사이트 추천: https://devpost.com/software/project-lge5o3fa1b9s
mexican pharmaceuticals online: buying prescription drugs in mexico online – mexican mail order pharmacies
pharmacies in mexico that ship to usa mexico drug stores pharmacies best online pharmacies in mexico
https://mexicanpharmacy1st.com/# medicine in mexico pharmacies
freeflowincome.com
그는 자신이 이 젊은이들을 점점 더 좋아한다는 것을 알게 되었습니다.
best online pharmacies in mexico mexican online pharmacies prescription drugs medicine in mexico pharmacies
https://mexicanpharmacy1st.shop/# mexico drug stores pharmacies
mexican rx online: mexican pharmacy – buying from online mexican pharmacy
http://mexicanpharmacy1st.com/# medication from mexico pharmacy
Капсулы мухомора для микродозинга купить украина . https://shafa.ua/uk/home/yeda/bakaleya/sukhofrukty/163187510-kapsuly-muhomora-dlya-mikrodozinga-kupit-ukraina-100sht
mexican drugstore online mexican pharmaceuticals online mexican online pharmacies prescription drugs
Купить реферат https://zakazhireferat.ru/ на заказ с гарантией. Надежные услуги по написанию рефератов. Заказать реферат по цене от 500 руб.