25. الفئة أو الصنفCLASS
الصنفClassأو نموذج عن عبارة هو الشيئية البرمجة في
للكائنات مخططObjectsمجمو في بينها فيما تشترك التيعة
الخصائص من.
All object-oriented programming languages support
the concept of a class. a class provides a template for
objects that share common characteristics
26. الكائنOBJECT
الكائنObjectالـ من نسخة عن عبارة هو الجافا لغة فيClass،
الـ يتكونObjectالح في والمتمثلة البيانات من مجموعة منقول
الساكنة غيرnon-static fieldsالـ في المعرفةClassوالعمليات
عليها المعرفة.
A Java object is an instance of a class. Objects are
collections of data values, the individual elements of
which are described by the non-static field definitions
of the class and defined methods.
27. التوجه كائنية البرمجة مبادئ
public class Employee
private String id
public String lastName
public String getId()
public void setId(String id)
….
fields
methods
id = 211
lastName = Hasan
Employee
id = 301
lastName = Ibrahim
Employee
new Employee
new Employee