মানব কল্যানে তথ্যপ্রযুক্তির সর্বোচ্চ সদব্যবহারের এবং প্রযুক্তিগত জ্ঞান অন্বেশনের প্রত্যাশায়। তথ্যপ্রযুক্তিগত সেবা দেওয়ার ও নেওয়ার মানসিকতায উদ্দীপ্ত হউক প্রতিটি সচেতন মানুষ ও প্রযুক্তিগত শিক্ষায় শিক্ষিত তরুন সমাজ। গড়ে উঠুক প্রযুক্তিগত সোসাল নেটওয়ার্ক।
3 বছর 3 মাস আগে
টিউন করেছেন : এম ইয়াকুব | প্রকাশিত হয়েছে : 30 January, 2010 on 5:35 pm | 3,684 বার দেখা হয়েছে |
35
Object কি ?
সাধারনভাবে object বলতে বুজায় কোন বস্তু, আপনি real-world এ অনেক উদাহরণ খুঁজে পাবেন: আপনার desk, আপনার টেলিভিশন, আপনার bicycle একটি অবজেক্ট, বই, কলম, খাতা, কম্পিউটার এগুলো প্রত্যকটিই এক একটি অবজেক্ট। প্রতিটি অবজেক্টের কিছু বৈশিষ্ট থাকে, যেগুলোর জন্য একটি object অন্য একটি object থেকে অলাদা। OOP প্রোগ্রামিং পদ্বতির রান টাইম এনটিটি হল object। object হল software bundle of related state and behavior।
পূবের টিউনটি ছিল: জাভা প্রোগ্রামিং লেনগুয়েজ হাতেখড়ি- প্রথম পর্ব। লিংক- http://techtunes.com.bd/programming/tune-id/18859/#comment-38781 **লেখকের (এম ইয়াকুব)অনুমতি ব্যতিরেকে এই লেখার আংশিক বা পূর্ণ অংশ কোন ধরনের মিডিয়ায় পুনঃপ্রকাশ করা যাবে না।
Objects are key to understanding object-oriented technology। ঠিক আপনার ধারে কাছে দেখুন এবং আপনি real-world বস্তুর অনেক উদাহরণ খুঁজে পাবেন: আপনার পোষা প্রানী, আপনার desk, আপনার টেলিভিশন, আপনার bicycle, গাড়ী ইত্যাদি । Real-world বস্তু দুই গুণাবলিসমূহ ভাগাভাগি করে: state and behavior/অবস্থান এবং আচরণ। পোষা প্রানীর অবস্থান রয়েছে (নাম, রং, breed, ক্ষুধার্ত) এবং আচরণ (barking, আনা হচ্ছে, wagging লিজ)। উদাহরন স্বরূপ Bicycles এর অবস্থান রয়েছে (বর্তমান gear, বর্তমান pedal cadence, বর্তমান গতি) এবং আচরণ (পরিবর্তনশীল gear, পরিবর্তনশীল cadence, applying brakes pedalয়)। অবস্থান সনাক্ত করছে এবং real-world বস্তুর জন্য state and behavior objects is a great way to begin thinking in terms of object-oriented programming.
আপনি লক্ষ্য করবেন যে real-world objects vary in complexity আপনার টেবিল ল্যাম্প এর কথাই ধরুন এটি only two possible states (on and off) and two possible behaviors (turn on, turn off) থাকতে পারে , কিন্তু আপনার ডেস্কটপ রেডিওটির কথা ভাবুন radio টিতে additional states (on, off, current volume, current station) and behavior (turn on, turn off, increase volume, decrease volume, seek, scan, and tune). এই real-world পর্যবেক্ষণগুলিই translate into the world of object-oriented programming.
প্রত্যেকটি বস্তু লক্ষ্য করুন দেখুন এবং নিজেই দুটি প্রশ্ন করুন: "What possible states can this object be in?" and "What possible behavior can this object perform?".আপনি পর্যবেক্ষণ করে দেখুন যে আপনার ডেস্কটপে যে লাইটটি অছে তা only two possible states (on and off) and two possible behaviors (turn on, turn off)থাকতে পারে।কিন্তু আপনার টিভির ক্ষত্রে অতিরিক্ত states (on, off, current volume, current station) and behavior (turn on, turn off, increase volume, decrease volume, seek, scan, and tune) আপনি ও লক্ষ্য করতে পারেন যে some objects, in turn, will also contain other objects. এই real-world পর্যবেক্ষণগুলি সমস্ত object-oriented প্রোগ্রামিংএ translate করে। নীম্নের চিত্রে একটি সাইকেলের গিয়ার লক্ষ্য করুন- এটা একটা software object এর উদাহরন.

Software objects are conceptually similar to real-world objects: they too consist of state and related behavior. এই পদ্ধতি একটি বস্তুর অভ্যন্তরীণ state পরিচালনা করে এবং object-to-object যোগাযোগের জন্য প্রাথমিক কৌশল হিসেবে সরবরাহ করে। অভ্যন্তরীণ গোপন করে এবং requiring সমস্ত পারস্পরিক যোগাযোগ object-oriented প্রোগ্রামিংএর ডেটা একটি মৌলিক মূলনীতি হিসেবে একটি object এর মধ্য দিয়ে কর্ম সম্পাদন করে।
উদাহরণের জন্য একটি bicycle, বিবেচনা করুন:

By attributing state (বর্তমান গতি, বর্তমান pedal cadence, এবং বর্তমান gear) সেই state পরিবর্তন করার জন্য এবং providing পদ্ধতিটি, বস্তুটির নিয়ন্ত্রণে থাকে যেমন বাইরে বিশ্ব এটি ব্যবহার করতে অনুমোদন করা হয়। উদাহর স্বরূপ, bicycleএর ৬ gears কেবল রয়েছে, gears পরিবর্তন করতে একটি পদ্ধতি যেকোন মূল্য বাতিল করতে পারে যে ৬এর চেয়ে ১ অথবা বৃহত্তরের চেয়ে কম।
Bundling code into individual software objects provides a number of benefits, including:
১। Modularity: একটি object এর জন্য উৎস কোড লেখা যাবে এবং অন্যান্য বস্তুর জন্য উৎস কোডের রক্ষণাবেক্ষণ করা যাবে স্বাধীনভাবে। Once created, an object can be easily passed around inside the system.
২। Information-hiding: By interacting only with an object's methods এর অভ্যন্তরীণ প্রয়োগের বিশদ বর্ণনা বাইরে বিশ্ব থেকে লুকানো থাকে।
৩। Code re-use: If an object already exists (perhaps written by another software developer), you can use that object in your program. This allows specialists to implement/test/debug complex, task-specific objects, which you can then trust to run in your own code.
৪। Pluggability and debugging ease: If a particular object turns out to be problematicআপনি আপনার অ্যাপলিকেশন থেকে এটি সহজভাবে সরিয়ে দিতে পারেন এবং এর বদলি হিসেবে একটি আলাদা object রিপ্লেস করতে পারেন।এটি আসল বিশ্বে mechanical সমস্যা মেরামতের অনুরূপ। শুধু মেরামত করা হয় সমগ্র মেশিন প্রতিস্থাপন হয় না।
class কি?
প্রকৃত বিশ্বে, আপনি একই ধরনের অনেক স্বতন্ত্র বস্তু সামজস্য প্রায়শই খুঁজে পাবেন। bicyclesএর হাজার হাজার একই রকম তৈরি করা এবং একই মডেলের । প্রত্যেক bicycle blueprintsএর একই সেট থেকে নির্মাণ করা হয়েছিল... চলবে...........
****লেখকের (এম ইয়াকুব)অনুমতি ব্যতিরেকে এই লেখার আংশিক বা পূর্ণ অংশ কোন ধরনের মিডিয়ায় পুনঃপ্রকাশ করা যাবে না।
বিভাগ : প্রোগ্রামিং
ট্যাগ : জাভা প্রোগ্রামিং
We are proud to inform you that Techtunes - http://techtunes.com.bd is now the largest & most popular technology social media, social network & on-line community in Bangladesh. With over 2.5 Million monthly page-views and over 88 thousand monthly unique visitors, over 1.8 Million people are connected worldwide through Techtunes and using this social blogging platform actively. Techtunes community is growing very rapidly and is the fastest growing social & on-line community in the history of Bangladesh. We are very happy to announce that within few weeks Techtunes is going to open for advertisement. But before launching the brand new platform we are giving a Very Special Offer to some of our hand selected potential advertiser and You guess right! You are the lucky one! Click Here to Buy Advertisement Now! Techtunes has just currently joined with iSocket Advertising Platform - An advertising platform that is used by web media giant Mashable, Techcrunch and Techtunes has just joined the rally. So, with Techtunes self managed advertising platform, anyone can now buy advertisement from Techtunes with just few clicks from http://www.buyads.com/website/techtunes. At the bottom of this email you will find a full instruction guide on how you can buy advertisement within a minute. Techtunes Advertising Platform Features Truly self managed Advertising platform Buy ads with your own with just three clicks. No advertising agency, no phone calls just chose your plan, upload your ad creative(s) and place the order and your ad will be live immediately! With special coupon code you will get special discount too! Track & Analyze your Audience You can track, view and analyze visitor's ad impression, clicks and graphs right from your dashboard. So you can observe what your ad audience and visitor are doing. Multiple and Flexible Payment Method No matter how you want to pay. If you have "International Credit Card" you can order immediately and your ads will show within few minutes. but if you don't have any its not a problem. You can choose "Bank Transfer" or "Check". Then you don't have to do anything. We will contact you and collect the money from you. Just place order and sit back! Techtunes advertising team will do the rest. Get Up to 50% Discount! As a launching ceremony of our new advertising platform we are giving 30% Discount Offer on buying any advertisement package via a coupon code. Just put Coupon Code "techtunes2011sep" (without the inverted comma) when purchase and click "Apply Coupon Code" button and you will get 30% discount immediately. Beside this you will get 10% discount on monthly plan & 20% discount on quarterly plan too. So you can get up to 50% discount on this promotional offer. This offer is limited and will expire on 31 Oct 2011. So Hurray! and don't miss the chance. Because so many chances don't come twice. Standard Size & High CTR Optimized AD We don't offer non-standard, low resolution and crapping ad size & space like others. All of our ad size and space are specified under the guideline of IAB and all ad size are placed according to Standard AD Size. Our ad placements are very much optimized for high CTR. All plans are prepaid basis. Techtunes AD Unit & Space Our ad placements are very much optimized for high CTR. To view Techtunes AD unit, AD placement, AD size and AD Space Click This Link. Click Here to Buy Advertisement Now! Why Advertisement With Techtunes? Techtunes is the world's first, most popular, fastest growing and number #1 complete Unicode based bangla technology social media & blogging platform in Bangladesh where people blog about advance computing, mobile, IT news, new gadget, science & technology & many more. From 21 February 2008 Techtunes has started its service and for its quality of content, visual presentation, uniqueness, tremendous development technology and for creative community building technique it has become the most popular, biggest, versatile, fastest growing web community and social media in Bangladesh within very short time. Techtunes is now a world of 1.8 Million people. About 1.8 Million+ people are connected worldwide. Over 8.5 Lac People are engaged through various social networks. Yearly about 130% community growth. Over 2.5 Million page-views per month. Over 88 Thousand unique visitors per month. Each visitor spends minimum 19 minutes on the site. About 20 Thousand+ site are connected. Run on rock solid Cloud Technology. Advertising with us will be highly befitted in many ways and we can ensure your products and brands will be highly promoted through our web portal to the targeted audience. Please feel free to contact us regarding any issue for advertising with us. Click Here to Buy Advertisement Now! Techtunes's Kingship Over The Internet Site Metric: Monthly Pageview : 2.5 Million+ / 22,00000+ Monthly Unique Visitor : 88 Thousand+ / 88, 000+ Monthly Visits : 2 Lacs 90 Thousand+ / 2,90,000+ Avg. Pageview of Each Visitor : 12.69+ Avg. Time on Site of Each Visitor : 19.53 Minutes Bounce Rate : 23% Site Ranks: Google Page Rank : 4 Alexa BD Rank : 14 Alexa World Rank : 5,000+ Quancast BD : 10 Quancast USA Rank : 3,03,000+ Social Network RSS Subscriber : 1,700+ Twitter Follower : 800+ Facebook Page Like : 11,500+ Facebook Group Member : 6,000+ Google Plus Follower : 1,200+ Google Buzz Follower : 700+ SEO Google Backlink : 19,720+ Yahoo Backlink : 13,994+ Bing Backlink : 16,295+ Platform Stats Monthly Active Blogger : 1,800+ Monthly Active Commenter : 4,000+ Monthly Blog Post : 3, 500+ Monthly Comment Post : 20,000+ Monthly New Member : 1,500+ Total Blog Post Till Aug 2011 : 17,000+ Total Comments Till Aug 2011 : 2,22,000+ Total Register Member Till Aug 2011 : 27,000+ Interested to Advertise on Techtunes? Go to Techtunes AD Marketplace http://www.buyads.com/website/techtunes to buy ADs. Right now 4 spaces are available. Select your preferred space and size of advertisement and Click "Add to Cart" A Pop- will be shown for configuring your campaign. Configure your campaign. Choose your ad duration, give your ad url and upload your ad and Click "Add to Cart" On the next screen click "Proceed to Checkout" On next screen you will get your check out page. If you have Coupon Code enter the Coupon Code and press "Apply Coupon Code" You will get special discount with the coupon. Click "Pay and Checkout" to confirm your order. On the next screen click "Register with BuyAds now" On the next screen fill up with your correct information. There are three payment options. If you have "International Credit Card" you can order immediately and your ads will show within few minute. But if you don't have any it's not a problem. Choose "Bank Transfer" or "Check". Then you don't have to do anything. We will contact you and collect the money from you. Click "Continue" and then "Place Order" to confirm your order. Techtunes Advertising team will contact with you quickly with your given email address and will confirm your order in very short time. After confirming your transaction your AD will be placed on Techtunes immediately. All Price are in USD As we are targeting both local and international adviser, all of our advertisement price are in USD. So, when you pay in your local currency like Taka, current market exchange rate will be applicable and you will get invoice according to that rate.
ইরায
অনেক জটিল মনে হচ্ছে ,ভাল করে পড়তে হবে।একটু সহজ করে কি লিখা যাবে ভাইয়া ।
এম ইয়াকুব
জাভা প্রোগ্রামিং লেনগুয়েজ খুব একটা সহজ নয়, একটু জটিল তো বটে, জাভা প্রোগ্রামিং লেনগুয়েজ এর বাংলা কোন সহজ টিউটোরিয়াল আছে কিনা আমার জানা নাই, জাভা প্রোগ্রামিং লেনগুয়েজ যেহেতু ইংরেজী মাধ্যম তাই বাংলায় একটু জটিল মনে হতে পারে, এই টিউটোরিলটির পাশাপাশি জাভা প্রোগ্রামিং লেনগুয়েজ এর বই পড়তে হবে এবং প্রচুর প্রেকটিস করতে হবে। জাভা প্রোগ্রামিং লেনগুয়েজ এর মাত্র নার্সারী লেভেল শুরু হল.. এখনেতো সত্যিকার জটিল সময় বাকী। তবে জাভা প্রোগ্রামিং লেনগুয়েজ সমন্ধে শিখতে হলে অন্তত: প্রোগ্রামিং লেনগুয়েজ এর অ…. ক,খ… জানা প্রয়োজন। টিউটোরিয়াল ফলো করেন আস্তে আস্তে সব ঠিক হয়ে যাবে। ধৈর্য ধরে প্রোগ্রামিং প্রেকটিস করুন সবকিছু এক সময় সহজ মনে হবে। টিউটোরিয়াল এর কোন অংশ বুঝতে সমস্যা হবে জানাবেন, প্রয়োজনীয় সহযোগীতা দেয়া হবে । ধন্যবাদ।
রিপোন২৪৮৮
Thanks vaia,আপনাদের মতো ভালো মানুসগুলোর সহোযোগিতার কারোনেই আমাদের মতো মানুস গুলো বেচে আছে ।
এম ইয়াকুব
ধন্যবাদ রিপন ভাইয়া, মানুষ মানুষের জন্য………..
Appliedmind
ভাইয়া, JAVA শিখার জন্য কোন বাংলা বই বা PDF অথবা কোন English Writter er BOOK
Reference দিলে সুবিধা হত।
jafarbd
vi amar ecliopse to setup nicca na atar .exe ta click korlay dakhai cannot execute etc………..ame run e gia dekhce java thik vabai install hoyaca …akhon ke korbo