Interface কি?
আমরা
 ইতিমধ্যে শিখেছি, objectsপদ্ধতির মধ্য দিয়ে বাইরে বিশ্বের সঙ্গে তাদের 
পারস্পরিক যোগাযোগ কিভাবে সংজ্ঞায়িত করেন ।  বাইরে বিশ্বের সঙ্গে objectএর 
ইন্টারফেস সংগঠিত করে; আপনার টেলিভিশনের  front বাটন উদাহরণের জন্য ব্যবহার
 করেছিল, যার মধ্যে ইন্টারফেস আছে এবং এর প্লাস্টিক casingএর অন্যান্য পাশে
 electrical wiring। আপনি "power" button চাপুন  television  on and off 
করার জন্য.
In its most 
common form, an interface is a group of related methods with empty 
bodies. A bicycle's behavior, if specified as an interface, might appear
 as follows:
interface Bicycle { void changeCadence(int newValue);
// wheel revolutions per minute void changeGear(int newValue);
void speedUp(int increment);
void applyBrakes(int decrement); }
এই
 ইন্টারফেস বাস্তবায়ন করতে, আপনার class এর নাম পরিবর্তন করতে হবে 
(উদাহরণস্বরুপ, যেমন ACMEBicycle এটি একটি নির্দিষ্ট ব্র্যান্ডের bicycle) 
and you'd use the implements keyword in the class declaration:
class ACMEBicycle implements Bicycle {// remainder of this class implemented as before }
Implementing
 an interface allows a class to become more formal about the behavior it
 promises to provide. class এবং বাইরে বিশ্বের মধ্যে ইন্টারফেস আকারে এটি 
একটি contract, এবং এই contract টি compilerএর দ্বারা build করা হয়। If 
your class claims to implement an interface, all methods defined by that
 interface must appear in its source code before the class will 
successfully compile.
 প্যাকেজ কি?
A
 package is a namespace that organizes a set of related classes and 
interfaces. প্যাকেজেক Conceptually আপনার computer এ আলাদা ফোল্ডারের 
similar  ভাবতে পারেন। আপনি HTML pages in one folder, images in another, 
and scripts or applications in yet another। Because software written in 
the Java programming language can be composed of hundreds or thousands 
of individual classes, it makes sense to keep things organized by 
placing related classes and interfaces into packages.
জাভা
 প্ল্যাটফর্ম একটি বড় class library (a set of packages) আপনার নিজের 
অ্যাপলিকেশনে ব্যবহারের জন্য উপযুক্ত। এই library টি " অ্যাপলিকেশন 
প্রোগ্রামিং ইন্টারফেস ", অথবা " এ.পি.আই. " for short। এর প্যাকেজ 
general-purpose প্রোগ্রামিংএর সঙ্গে কাজ সর্বাপেক্ষা সাধারণভাবে 
প্রতিনিধিত্ব করতে সহযোগিতা করে। a String object  contains state and 
behavior for character strings; a File object allows a programmer to 
easily create, delete, inspect, compare, or modify a file on the 
filesystem; a Socket object allows for the creation and use of network 
sockets; various GUI objects control buttons and checkboxes and anything
 else related to graphical user interfaces.
The Java Platform API Specification
 contains the complete listing for all packages, interfaces, classes, 
fields, and methods supplied by the Java Platform 6, একজন প্রোগ্রামার 
হিসেবে, এইটি তথ্যসূত্র ডকুমেনটেশনট আপনার একক সর্বাপেক্ষা গুরুত্বপূর্ণ 
রেফারেন্স হিসাবে কাজে আসবে। গত ৫টি টিউটোরিয়াল এ Object-Oriented 
Programming Concepts এর কিছু প্রয়োজনীয় বিষয় নিয়ে লোচনা করা হয়েছে। 
পরবতীতে জাভা সফটোয়্যার ইনস্টল, কনফিগার এবং জাভা এডিটর এবং জাভা Language 
 Basics নিয়ে বিস্তারিত বননা থাকবে। চলবে..........
 
No comments:
Post a Comment