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
Hello! I know this is kind of off topic but I was wondering if you knew where I could get a captcha plugin for my comment form? I’m using the same blog platform as yours and I’m having difficulty finding one? Thanks a lot!
I was extremely pleased to find this website. I wanted to thank you for your time for this wonderful read!! I definitely liked every little bit of it and I have you bookmarked to see new things on your blog.
Thank you for the auspicious writeup. It in reality was a entertainment account it. Glance complicated to far brought agreeable from you! By the way, how can we communicate?
Im not that much of a online reader to be honest but your blogs really nice, keep it up! I’ll go ahead and bookmark your site to come back later. All the best
Thanks for your marvelous posting! I truly enjoyed reading it, you are a great author. I will always bookmark your blog and will come back from now on. I want to encourage you to continue your great writing, have a nice weekend!
I read this article fully regarding the comparison of latest and previous technologies, it’s remarkable article.
I’ve read some just right stuff here. Definitely worth bookmarking for revisiting. I wonder how so much attempt you put to create one of these great informative web site.
fantastic issues altogether, you just gained a emblem new reader. What might you suggest in regards to your post that you simply made a few days ago? Any sure?
Whats up this is somewhat of off topic but I was wondering if blogs use WYSIWYG editors or if you have to manually code with HTML. I’m starting a blog soon but have no coding experience so I wanted to get advice from someone with experience. Any help would be greatly appreciated!
mexican drugstore online: cheapest mexico drugs – mexico drug stores pharmacies
I do consider all the ideas you have introduced for your post. They are very convincing and will definitely work. Still, the posts are too brief for newbies. May you please prolong them a bit from next time? Thank you for the post.
My programmer is trying to persuade me to move to .net from PHP. I have always disliked the idea because of the expenses. But he’s tryiong none the less. I’ve been using Movable-type on numerous websites for about a year and am worried about switching to another platform. I have heard very good things about blogengine.net. Is there a way I can transfer all my wordpress content into it? Any kind of help would be really appreciated!
I’m not sure why but this website is loading extremely slow for me. Is anyone else having this issue or is it a problem on my end? I’ll check back later and see if the problem still exists.
Hi, i think that i saw you visited my blog so i got here to go back the prefer?.I am trying to in finding things to improve my website!I guess its good enough to use some of your concepts!!
Хотите избавиться от зависимости? Обратитесь в нашу наркологическую клинику в Барнауле. Мы гарантируем конфиденциальность, профессионализм и эффективное лечение под руководством опытных врачей.
Hi there everyone, it’s my first go to see at this web site, and post is really fruitful for me, keep up posting these posts.
Pretty section of content. I just stumbled upon your website and in accession capital to assert that I acquire in fact enjoyed account your blog posts. Any way I’ll be subscribing to your augment and even I achievement you access consistently rapidly.
buy prescription drugs from india: indian pharmacy – top 10 pharmacies in india
What’s up it’s me, I am also visiting this site regularly, this website is actually good and the viewers are really sharing nice thoughts.
Hi! This is my 1st comment here so I just wanted to give a quick shout out and tell you I truly enjoy reading through your blog posts. Can you suggest any other blogs/websites/forums that deal with the same subjects? Thanks for your time!
Oh my goodness! Incredible article dude! Thanks, However I am going through problems with your RSS. I don’t know why I can’t subscribe to it. Is there anybody else getting identical RSS problems? Anyone who knows the solution will you kindly respond? Thanx!!
I was recommended this website by my cousin. I am not sure whether this post is written by him as no one else know such detailed about my difficulty. You are amazing! Thanks!
It’s awesome in favor of me to have a website, which is useful for my experience. thanks admin
Howdy! This post couldn’t be written any better! Reading this post reminds me of my old room mate! He always kept talking about this. I will forward this post to him. Pretty sure he will have a good read. Thank you for sharing!
Доверьте свое выздоровление профессионалам! Наша наркологическая клиника в Барнауле предлагает широкий спектр услуг, включая диагностику, лечение и реабилитацию. Начните свой путь к здоровой жизни прямо сейчас.
No matter if some one searches for his necessary thing, so he/she desires to be available that in detail, so that thing is maintained over here.
I am curious to find out what blog system you are working with? I’m experiencing some minor security problems with my latest website and I would like to find something more safeguarded. Do you have any suggestions?
online shopping pharmacy india best online pharmacy india Online medicine order
Awesome blog! Do you have any hints for aspiring writers? I’m planning to start my own site soon but I’m a little lost on everything. Would you suggest starting with a free platform like WordPress or go for a paid option? There are so many choices out there that I’m totally confused .. Any suggestions? Cheers!
Howdy! I know this is kinda off topic nevertheless I’d figured I’d ask. Would you be interested in exchanging links or maybe guest writing a blog article or vice-versa? My site addresses a lot of the same subjects as yours and I believe we could greatly benefit from each other. If you are interested feel free to send me an e-mail. I look forward to hearing from you! Wonderful blog by the way!
Oh my goodness! Amazing article dude! Thanks, However I am encountering problems with your RSS. I don’t know why I am unable to subscribe to it. Is there anybody else getting the same RSS problems? Anybody who knows the solution will you kindly respond? Thanx!!
mexican pharmacy: mexican pharmacy – best mexican online pharmacies
You really make it seem so easy together with your presentation however I find this topic to be really something which I feel I would never understand. It sort of feels too complicated and very vast for me. I am taking a look forward on your next publish, I will try to get the grasp of it!
whoah this blog is great i love reading your articles. Stay up the good work! You know, many individuals are hunting around for this info, you can help them greatly.
Appreciate the recommendation. Will try it out.
It’s a shame you don’t have a donate button! I’d certainly donate to this superb blog! I suppose for now i’ll settle for book-marking and adding your RSS feed to my Google account. I look forward to fresh updates and will talk about this site with my Facebook group. Chat soon!
mexican pharmacy mexican pharmacy reputable mexican pharmacies online
Nice post. I was checking continuously this blog and I am impressed! Very useful information particularly the last part 🙂 I care for such info a lot. I was seeking this particular info for a long time. Thank you and good luck.
п»їlegitimate online pharmacies india: Generic Medicine India to USA – indian pharmacy paypal
I was wondering if you ever considered changing the page layout of your blog? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better. Youve got an awful lot of text for only having one or two images. Maybe you could space it out better?
Normally I do not read article on blogs, however I wish to say that this write-up very forced me to try and do so! Your writing taste has been amazed me. Thank you, quite great article.
I’m not sure where you are getting your info, but good topic. I needs to spend some time learning more or understanding more. Thanks for wonderful information I was looking for this information for my mission.
Hey There. I found your blog using msn. This is an extremely well written article. I will be sure to bookmark it and come back to read more of your useful information. Thanks for the post. I will definitely comeback.
Hi there, I enjoy reading all of your article. I like to write a little comment to support you.
Hello there, You have performed a fantastic job. I will definitely digg it and individually recommend to my friends. I am sure they will be benefited from this site.
I’m gone to tell my little brother, that he should also go to see this weblog on regular basis to take updated from most up-to-date news.
https://indianpharmacy.icu/# top 10 online pharmacy in india
Thank you for sharing your info. I truly appreciate your efforts and I am waiting for your next post thank you once again.
Quality posts is the important to attract the viewers to pay a visit the website, that’s what this website is providing.
I’m not positive where you are getting your info, however good topic. I needs to spend a while learning more or working out more. Thank you for fantastic information I used to be on the lookout for this information for my mission.