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
An intriguing discussion is definitely worth comment.
There’s no doubt that that you should publish more on this subject,
it might not be a taboo subject but typically people do not speak about such subjects.
To the next! Many thanks!!
When someone writes an article he/she keeps the image of a user in his/her mind
that how a user can understand it. Thus that’s why this paragraph is great.
Thanks!
http://cialis.foundation/# cialis for sale
If we re experiencing low blood volume, we can t add more immediately If we don t have enough blood, we ll cross out and this will doxycycline cause your your blood sugar to rise is very dangerous to the brain and body long run Then a medical professional will measure your fasting blood sugar degree After that, you drink a sugary liquid and a medical skilled tests does lyrica raise blood sugar your blood sugar levels periodically for the following two hours A blood sugar level lower than 140 mg dL is a normal outcome, a studying between a hundred and forty and 199 mg dL signifies prediabetes, and 200 mg DL or larger after two hours suggests that you have diabetes Emergent remedy to restore regular blood glucose normal blood sugar level for 27 year old male ranges is imperative as certain organs eg brain do not store glucose and need a continuing provide of blood glucose to maintain life priligy reddit
buy Levitra over the counter Levitra 10 mg best price Levitra 10 mg buy online
http://levitra.eus/# Vardenafil buy online
https://instaavm.com/
http://viagra.eus/# cheap viagra
Клиника глазных болезней. http://diagnostika-zreniya.ru/. Лазерная коррекция зрения ФЕМТО ЛАСИК.
http://viagra.eus/# sildenafil over the counter
Hi, constantly i used to check weblog posts here in the early hours in the daylight, because
i like to learn more and more.
Generic Levitra 20mg Levitra online USA fast Buy generic Levitra online
bookmarked!!, I like your blog!
http://levitra.eus/# buy Levitra over the counter
What’s up it’s me, I am also visiting this website on a regular basis, this web page is really nice
and the viewers are truly sharing pleasant thoughts.
If some one wants expert view about blogging afterward i advise him/her to go to see this website,
Keep up the pleasant work.
Hello! I know this is kinda off topic but I’d figured I’d ask.
Would you be interested in exchanging links or maybe guest authoring a blog article or
vice-versa? My blog covers a lot of the same topics as yours and I feel we could greatly benefit from each other.
If you might be interested feel free to shoot me an e-mail.
I look forward to hearing from you! Terrific blog by
the way!
https://stromectol.icu/# stromectol ebay
Thanks in support of sharing such a nice thought,
paragraph is nice, thats why i have read it fully
https://avnibeyotel.com/
stromectol sales: ivermectin 0.1 uk – ivermectin cost in usa
I go to see daily a few web pages and blogs to read content,
except this website offers feature based posts.
На mehanizirovannaya-shtukaturka-moscow.ru вы найдете услугу штукатурки стен машинным способом. Это оптимальное решение для идеально ровных стен.
oral ivermectin cost: minocycline 100 – minocycline interactions
мужские сапоги для для рыбалки
buy clopidogrel bisulfate: antiplatelet drug – buy clopidogrel bisulfate
I’m really enjoying the design and layout of your blog.
It’s a very easy on the eyes which makes it much more pleasant for me to come here and visit more often.
Did you hire out a designer to create your theme?
Great work!
Paxlovid buy online: nirmatrelvir and ritonavir online – paxlovid price
https://plavix.guru/# plavix medication
http://stromectol.icu/# stromectol 3mg
I’d like to thank you for the efforts you have put in writing this blog. I am hoping to see the same high-grade blog posts from you in the future as well. In fact, your creative writing abilities has inspired me to get my very own website now 😉
LhaneDrier
https://trentonlkif84949.blogsmine.com/23076677/elevate-your-cs-go-encounter-with-csgoroll-promo-codes
Because the admin of this web page is working, no
question very soon it will be well-known, due to its quality contents.
hi!,I like your writing so a lot! share we communicate more approximately your
post on AOL? I require a specialist in this house to solve
my problem. Maybe that is you! Having a look
forward to look you.
Hello colleagues, its wonderful piece of writing
on the topic of educationand fully explained, keep it up all the time.
п»їplavix generic: plavix best price – buy clopidogrel bisulfate
stromectol pill price: ivermectin medication – cost for ivermectin 3mg
valtrex 500 mg uk price: buy antiviral drug – valtrex over the counter australia
https://plavix.guru/# cheap plavix antiplatelet drug
http://stromectol.icu/# ivermectin tablet 1mg
My brother suggested I might like this web site. He used to be totally right.
This publish truly made my day. You can not believe just how a lot time I had spent
for this info! Thanks!
строительное снабжение производство
my canadian family pharmacy
Have you ever thought about creating an ebook or guest authoring on other websites?
I have a blog based on the same information you discuss and
would really like to have you share some stories/information. I know
my visitors would enjoy your work. If you are even remotely interested,
feel free to shoot me an e-mail.
Hi, i believe that i saw you visited my website so i came to return the
desire?.I am trying to to find things to enhance
my web site!I assume its ok to use some of your ideas!!
http://plavix.guru/# generic plavix
My brother suggested I might like this web site. He
was totally right. This post actually made my day. You cann’t
imagine simply how much time I had spent for this information! Thanks!
I am actually grateful to the holder of this web
site who has shared this impressive post at here.
https://stromectol.icu/# ivermectin oral 0 8
Pretty! This was an extremely wonderful post. Thanks for supplying this information.