Ana sayfa Genel Python – Nesne Yönelimli Programlama – Metodlar

Python – Nesne Yönelimli Programlama – Metodlar

3500
177
PAYLAŞ

Nesne Yönelimli Programlama – Metodlar

Bu yazıda bir sınıf içinde metodlarımızı nasıl tanımlayacağımızı öğrenmeye çalışacağız. Bunun için ilk olarak bir Yazılımcı sınıfı tanımlayalım.

Önceki dersten bunların nasıl yapıldığını biliyoruz. Peki bu class’a metodlarımızı nasıl tanımlayabiliriz ? Aynı init metodunu tanımladığımız gibi bir class’a da istediğimiz kadar metod tanımlayabiliriz. Örneğin ,Yazılımcı classına bilgilerigöster isimli bir metod tanımlayalım.

Burada bilgilerigöster isimli metod tanımlayarak her bir özelliğimizin değeri ekrana derli toplu bir şekilde yazdırmış olduk. Metodlarımızı yazarken dikkat etmemiz gerek nokta, her metodun birinci parametresinin self referansı olması gerektiğidir. Ayrıca objelerimizin özelliklerine mutlaka self referansıyla erişmemiz gerekiyor.İsterseniz bu classa 2 tane daha metod yazalım.

İşte bu kadar ! Bir sonraki derste de inheritance yani kalıtım mantığını öğrenmeye çalışacağız.

177 YORUMLAR

  1. Thanx for the effort, keep up the good work Great work, I am going to start a small Blog Engine course work using your site I hope you enjoy blogging with the popular BlogEngine.net.Thethoughts you express are really awesome. Hope you will right some more posts.

  2. you’re really a good webmaster. The website loading speed is incredible. It seems that you’re doing any unique trick. Moreover, The contents are masterpiece. you’ve done a fantastic job on this topic!

  3. I’m impressed, I have to admit. Seldom do I encounter
    a blog that’s equally educative and interesting, and let me tell
    you, you’ve hit the nail on the head. The problem is something not enough
    people are speaking intelligently about. I’m very happy I found
    this in my hunt for something concerning this.

  4. Hi, Neat post. There’s an issue together with your site
    in internet explorer, might check this? IE still is the market leader and a huge part of folks will pass over your
    wonderful writing because of this problem.

  5. You are my aspiration, I possess few blogs and occasionally run out from brand :). “To die for a religion is easier than to live it absolutely.” by Jorge Luis Borges.

  6. I beloved as much as you will obtain carried out right here. The cartoon is attractive, your authored subject matter stylish. nonetheless, you command get got an impatience over that you would like be turning in the following. unwell indisputably come further before again since precisely the similar nearly a lot frequently inside of case you defend this hike.

  7. Just desire to say your article is as astounding. The clarity to your post is simply great and that i could suppose you are a professional in this subject. Well together with your permission allow me to seize your RSS feed to stay updated with drawing close post. Thank you a million and please carry on the gratifying work.

  8. Good day! Do you know if they make any plugins to safeguard against hackers?
    I’m kinda paranoid about losing everything I’ve worked hard
    on. Any suggestions?

  9. Greetings from Idaho! I’m bored to tears at work so I decided to check out your website on my iphone during lunch break. I enjoy the info you provide here and can’t wait to take a look when I get home. I’m amazed at how quick your blog loaded on my phone .. I’m not even using WIFI, just 3G .. Anyways, amazing site!

  10. I absolutely love your blog and find many of your post’s to be exactly what I’m looking for. Does one offer guest writers to write content for you? I wouldn’t mind writing a post or elaborating on some of the subjects you write regarding here. Again, awesome website!

  11. I simply wanted to compose a brief comment in order to appreciate you for some of the precious techniques you are giving out on this website. My rather long internet lookup has now been compensated with excellent facts and strategies to talk about with my partners. I ‘d state that that we visitors actually are unequivocally lucky to be in a magnificent site with so many awesome individuals with valuable ideas. I feel extremely lucky to have used your web pages and look forward to so many more brilliant moments reading here. Thank you once more for everything.

  12. Magnificent beat ! I wish to apprentice while you amend your site, how could i subscribe for a blog web site? The account aided me a acceptable deal. I had been a little bit acquainted of this your broadcast provided bright clear idea

  13. obviously like your website but you have to check the spelling on several of your posts. Several of them are rife with spelling problems and I find it very bothersome to tell the truth nevertheless I’ll surely come back again.

  14. I simply wished to thank you very much once more. I’m not certain the things I would’ve undertaken in the absence of these pointers discussed by you about this field. This has been a frightening matter in my circumstances, however , taking a look at this expert mode you processed that forced me to cry over delight. I’m happier for this information and then expect you find out what a powerful job you are always putting in training men and women with the aid of your blog. I am sure you haven’t encountered any of us.

  15. Very interesting topic, appreciate it for putting up. “There are several good protections against temptations, but the surest is cowardice.” by Mark Twain.

  16. Can I simply just say what a comfort to find an individual
    who really knows what they are discussing over the internet.
    You actually know how to bring a problem to light and make it important.
    More people really need to read this and understand this side of the story.
    I was surprised you’re not more popular because you
    most certainly possess the gift.

  17. I’m extremely impressed with your writing skills as well as with the layout on your blog. Is this a paid theme or did you modify it yourself? Either way keep up the nice quality writing, it is rare to see a nice blog like this one these days..

  18. But wanna remark on few general things, The website pattern is perfect, the content material is real great. “The way you treat yourself sets the standard for others.” by Sonya Friedman.

  19. I do agree with all the ideas you have presented in your post. They are really convincing and will certainly work. Still, the posts are too brief for beginners. May you please lengthen them a bit from next time? Thanks for the post.

  20. I loved as much as you’ll receive carried out right here.
    The sketch is tasteful, your authored material stylish. nonetheless, you command get got an edginess
    over that you wish be delivering the following.
    unwell unquestionably come further formerly again since exactly
    the same nearly a lot often inside case you shield this hike.

  21. certainly like your web-site but you have to take a look at the spelling on several of your posts. A number of them are rife with spelling problems and I in finding it very troublesome to tell the truth however I will definitely come back again.

  22. Hi, i read your blog from time to time and i own a similar one and i was just curious if you get a lot of spam remarks? If so how do you stop it, any plugin or anything you can recommend? I get so much lately it’s driving me mad so any support is very much appreciated.

  23. Fantastic beat ! I wish to apprentice while you amend your site, how can i subscribe for a blog site? The account helped me a acceptable deal. I had been tiny bit acquainted of this your broadcast provided bright clear idea

  24. Hello, you used to write fantastic, but the last several posts have been kinda boring… I miss your great writings. Past several posts are just a bit out of track! come on!

  25. Hello there! I could have sworn I’ve been to this website before but after reading through some of the post I realized it’s new to me.

    Nonetheless, I’m definitely glad I found it and I’ll be book-marking and checking back often!

  26. I really like your blog.. very nice colors & theme. Did you make this website yourself or did you hire someone to do it for you? Plz answer back as I’m looking to design my own blog and would like to know where u got this from. cheers

  27. Greetings from California! I’m bored to tears at
    work so I decided to check out your website on my iphone during
    lunch break. I enjoy the info you present here and can’t wait to take a
    look when I get home. I’m surprised at how fast your blog loaded on my phone ..

    I’m not even using WIFI, just 3G .. Anyways, amazing
    site!

  28. Dysport是A型肉毒桿菌素,為英國一所受嚴格監管的藥廠內透過高科技純化程序提煉的蛋白質。 Dysport更獲美國食品及藥物管理局FDA核准用於美容用途,肯定其效果及安全性。其能有效阻隔神經訊息傳達,令肌肉不受神經控制,減退因肌肉而過度收縮引致的面部動態性皺紋及放鬆過度活躍的肌肉,以達到瘦面、瘦小腿效果;亦能抑制汗腺掛汗的神經系統,有效減少汗水分泌,達到止汗​​及減少異味。Dysport 瘦面 溶脂 Dysport注射到咬肌內,抑制神經肌接頭處乙酰膽鹼遞質的傳遞,使咬肌張力變小而達到瘦臉效果。

  29. Along with every thing that seems to be building throughout this particular subject matter, many of your points of view are actually somewhat radical. On the other hand, I appologize, because I can not give credence to your whole theory, all be it refreshing none the less. It appears to us that your commentary are generally not entirely validated and in actuality you are generally yourself not really entirely convinced of the point. In any case I did enjoy looking at it.

  30. With havin so much content do you ever run into any issues of plagorism or copyright violation? My blog has a lot of unique content I’ve either written myself or outsourced but it looks like a lot of it is popping it up all over the internet without my agreement. Do you know any methods to help stop content from being stolen? I’d certainly appreciate it.

  31. What i don’t understood is actually how you are now not really a lot more well-preferred than you might be right now. You’re so intelligent. You realize therefore significantly on the subject of this subject, made me individually imagine it from numerous numerous angles. Its like women and men don’t seem to be involved unless it is something to accomplish with Lady gaga! Your personal stuffs nice. Always handle it up!

  32. I got what you intend, appreciate it for posting.Woh I am happy to find this website through google. “I was walking down the street wearing glasses when the prescription ran out.” by Steven Wright.

  33. hi!,I like your writing so much! share we communicate more about your article on AOL? I need a specialist on this area to solve my problem. May be that’s you! Looking forward to see you.

  34. Wolves have confirmed midfielder Ruben Neves has committed his future to the club and signed a new long-term deal at Molineux. The club confirmed on Monday details of his new deal. Wolves midfielder Ruben Neves commits future and signs new five-year contract at Molineux: ‘It is important to know the club trusts me’

  35. A lot of thanks for each of your efforts on this web site. My daughter loves getting into investigations and it’s really easy to see why. Most people know all about the lively manner you present useful items on this web site and therefore attract response from website visitors on this area plus our daughter is truly discovering a great deal. Enjoy the rest of the new year. You are always conducting a useful job.

  36. It’s perfect time to make some plans for the future and it is time to be happy. I have read this post and if I could I want to suggest you few interesting things or advice. Perhaps you could write next articles referring to this article. I desire to read even more things about it!

  37. This is the right blog for anyone who wants to find out about this topic. You realize so much its almost hard to argue with you (not that I actually would want…HaHa). You definitely put a new spin on a topic thats been written about for years. Great stuff, just great!

  38. Hi there, just became aware of your blog through Google, and found that it is truly informative. I’m gonna watch out for brussels. I will be grateful if you continue this in future. Lots of people will be benefited from your writing. Cheers!

  39. Hello, Neat post. There’s a problem with your website in web explorer, may test this?K IE still is the market leader and a huge component of other folks will pass over your fantastic writing due to this problem.

  40. Thanks a bunch for sharing this with all of us you actually know what you’re talking about! Bookmarked. Please also visit my website =). We could have a link exchange arrangement between us!

  41. naturally like your web-site however you have to test the spelling on quite a few of your posts. Many of them are rife with spelling problems and I find it very troublesome to tell the truth however I will definitely come again again.

  42. I was just searching for this info for some time. After six hours of continuous Googleing, at last I got it in your web site. I wonder what is the lack of Google strategy that don’t rank this type of informative sites in top of the list. Generally the top web sites are full of garbage.

  43. Simply wish to say your article is as astonishing. The clearness to your submit is just nice and that i can think you are knowledgeable on this subject. Fine along with your permission let me to clutch your feed to stay updated with drawing close post. Thanks a million and please carry on the rewarding work.

  44. Unquestionably believe that which you said. Your favorite justification appeared to be on the internet the easiest thing to be aware of. I say to you, I definitely get irked while people think about worries that they plainly don’t know about. You managed to hit the nail upon the top and also defined out the whole thing without having side effect , people can take a signal. Will probably be back to get more. Thanks

  45. My spouse and I absolutely love your blog and find almost all of your post’s to be just what I’m looking for. Does one offer guest writers to write content in your case? I wouldn’t mind creating a post or elaborating on most of the subjects you write related to here. Again, awesome web log!

  46. Good day! I know this is kind of off topic but I was wondering if you knew where I could find 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!

  47. Excellent post. I was checking continuously this blog and I’m inspired! Extremely useful information specifically the closing part 🙂 I care for such info much. I used to be looking for this particular info for a long time. Thanks and best of luck.

  48. I do agree with all of the ideas you have presented in your post. They are very convincing and will certainly work. Still, the posts are very short for newbies. Could you please extend them a little from next time? Thanks for the post.

  49. Thanks for your personal marvelous posting! I quite enjoyed reading it, you may be a great author.I will always bookmark your blog and will eventually come back from now on. I want to encourage one to continue your great job, have a nice afternoon!

  50. Thanks for sharing excellent informations. Your site is so cool. I am impressed by the details that you have on this blog. It reveals how nicely you perceive this subject. Bookmarked this website page, will come back for extra articles. You, my pal, ROCK! I found just the info I already searched all over the place and just couldn’t come across. What an ideal site.

  51. Hey! I know this is kinda off topic however I’d figured I’d ask. Would you be interested in trading links or maybe guest writing a blog article or vice-versa? My site addresses a lot of the same subjects as yours and I think we could greatly benefit from each other. If you’re interested feel free to send me an email. I look forward to hearing from you! Great blog by the way!

  52. whoah this blog is excellent i love reading your posts. Keep up the good work! You know, many people are searching around for this information, you could help them greatly.

  53. Thank you for sharing excellent informations. Your website is very cool. I am impressed by the details that you¦ve on this website. It reveals how nicely you perceive this subject. Bookmarked this website page, will come back for more articles. You, my friend, ROCK! I found just the information I already searched all over the place and simply couldn’t come across. What a great web-site.

  54. You actually make it seem really easy together with your presentation but I in finding this topic to be really one thing which I believe I would never understand. It seems too complicated and extremely large for me. I am looking forward on your next submit, I will attempt to get the dangle of it!

  55. Hmm it appears like your site ate my first comment (it was super long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog. I as well am an aspiring blog blogger but I’m still new to the whole thing. Do you have any helpful hints for first-time blog writers? I’d definitely appreciate it.

  56. It is perfect time to make some plans for the future and it’s time to be happy. I have read this post and if I could I want to suggest you few interesting things or tips. Maybe you can write next articles referring to this article. I want to read even more things about it!

  57. Thanks a lot for sharing this with all of us you actually know what you are talking about! Bookmarked. Kindly also visit my website =). We could have a link exchange arrangement between us!

  58. you’re really a just right webmaster. The website loading pace is incredible. It kind of feels that you’re doing any unique trick. Moreover, The contents are masterpiece. you’ve performed a excellent activity on this subject!

  59. Undeniably believe that which you said. Your favourite justification appeared to be at the net the simplest factor to keep in mind of. I say to you, I definitely get irked at the same time as other folks think about concerns that they just do not realize about. You managed to hit the nail upon the top as smartly as outlined out the whole thing with no need side effect , folks can take a signal. Will likely be again to get more. Thanks

  60. It’s a shame you don’t have a donate button! I’d most certainly donate to this excellent blog! I suppose for now i’ll settle for bookmarking and adding your RSS feed to my Google account. I look forward to brand new updates and will share this site with my Facebook group. Chat soon!

  61. I was just searching for this information for some time. After 6 hours of continuous Googleing, finally I got it in your site. I wonder what is the lack of Google strategy that do not rank this type of informative sites in top of the list. Generally the top websites are full of garbage.

  62. Howdy! This is my first comment here so I just wanted to give a quick shout out and tell you I genuinely enjoy reading your posts. Can you recommend any other blogs/websites/forums that go over the same topics? Thanks a ton!

  63. I believe that is among the most important info for me. And i’m glad studying your article. However should observation on few basic issues, The site style is perfect, the articles is in point of fact nice : D. Just right activity, cheers

  64. Thanks for the sensible critique. Me & my neighbor were just preparing to do some research on this. We got a grab a book from our local library but I think I learned more clear from this post. I am very glad to see such wonderful information being shared freely out there.

  65. Good – I should certainly pronounce, impressed with your site. I had no trouble navigating through all the tabs and related information ended up being truly simple to do to access. I recently found what I hoped for before you know it at all. Quite unusual. Is likely to appreciate it for those who add forums or something, site theme . a tones way for your customer to communicate. Nice task..

  66. I am really impressed along with your writing skills and also with the layout on your weblog. Is that this a paid subject matter or did you customize it yourself? Either way stay up the nice quality writing, it’s uncommon to look a great blog like this one today..

  67. Whats Taking place i’m new to this, I stumbled upon this I’ve discovered It absolutely useful and it has aided me out loads. I hope to contribute & help different customers like its aided me. Good job.

  68. Thanks for sharing excellent informations. Your web-site is so cool. I’m impressed by the details that you¦ve on this site. It reveals how nicely you understand this subject. Bookmarked this website page, will come back for more articles. You, my pal, ROCK! I found simply the info I already searched all over the place and just could not come across. What a great website.

  69. Wonderful work! This is the type of info that should be shared around the internet. Shame on the search engines for not positioning this post higher! Come on over and visit my site . Thanks =)

  70. I’ll right away grasp your rss feed as I can not in finding your e-mail subscription hyperlink or e-newsletter service. Do you’ve any? Please allow me recognize in order that I may just subscribe. Thanks.

  71. I haven¦t checked in here for some time because I thought it was getting boring, but the last several posts are good quality so I guess I will add you back to my everyday bloglist. You deserve it my friend 🙂

  72. Unquestionably believe that which you stated. Your favorite justification seemed to be at the net the simplest thing to remember of. I say to you, I certainly get irked while people consider issues that they plainly don’t recognise about. You controlled to hit the nail upon the highest and defined out the whole thing without having side-effects , people could take a signal. Will likely be again to get more. Thank you

  73. Hiya, I’m really glad I have found this information. Nowadays bloggers publish only about gossips and net and this is actually irritating. A good blog with exciting content, this is what I need. Thank you for keeping this website, I will be visiting it. Do you do newsletters? Can not find it.

  74. Can I just say what a relief to find someone who actually knows what theyre talking about on the internet. You definitely know how to bring an issue to light and make it important. More people need to read this and understand this side of the story. I cant believe youre not more popular because you definitely have the gift.

  75. Hey there, You have done a great job. I will certainly digg it and personally recommend to my friends. I am confident they’ll be benefited from this web site.

  76. Hello there! Do you know if they make any plugins to safeguard against hackers? I’m kinda paranoid about losing everything I’ve worked hard on. Any suggestions?

  77. I’ve been surfing online more than 3 hours today, yet I never found any interesting article like yours. It’s pretty worth enough for me. Personally, if all web owners and bloggers made good content as you did, the web will be a lot more useful than ever before.

  78. Thanks for all of the efforts on this blog. Debby takes pleasure in participating in internet research and it’s really easy to see why. My spouse and i hear all of the lively tactic you deliver advantageous tricks via your website and even increase participation from the others about this area and our own daughter is now studying a great deal. Enjoy the remaining portion of the year. You are always performing a wonderful job.

  79. Hello there! I know this is kinda off topic but I was wondering which blog platform are you using for this website? I’m getting sick and tired of WordPress because I’ve had issues with hackers and I’m looking at alternatives for another platform. I would be fantastic if you could point me in the direction of a good platform.

  80. Thank you a lot for sharing this with all folks you really know what you are speaking about!
    Bookmarked. Kindly also discuss with my web site =).
    We could have a link exchange agreement between us

BİR CEVAP BIRAK

Please enter your comment!
Please enter your name here