انت هنا الان : شبكة جامعة بابل > موقع الكلية > نظام التعليم الالكتروني > مشاهدة المحاضرة

Object Oriented Programming

الكلية كلية تكنولوجيا المعلومات     القسم قسم شبكات المعلومات     المرحلة 3
أستاذ المادة مهدي عبادي مانع الموسوي       28/10/2013 09:43:14
1. Object Oriented Programming

The Analysis and Design Phase :
Analysis describes what the system needs to do: Modeling the real-world, including actors and activities, objects, and behaviors.
Design describes how the system does it:
• Modeling the relationships and interactions between objects and actors in the system
Example: E-tourism Class Diagram
a. The Default Constructor
There is always at least one constructor in every class. If the writer does not supply any constructors, the default constructor is present automatically:
The default constructor takes no arguments and The default constructor body is empty. The default enables you to create object instances with new Xxx()without having to write a constructor.

c. Basic syntax of an attribute:

* [ = ];

e. Accessing Object Members
The dot notation is: .
• This is used to access object members, including attributes and methods.

public static void main (String args []) {
Dog d= new Dog ();
d.setWeight(42);
d.weight = 42; // only permissible if weight is public

d.Declaring Methods

* ( * )
{
*
} end method


المادة المعروضة اعلاه هي مدخل الى المحاضرة المرفوعة بواسطة استاذ(ة) المادة . وقد تبدو لك غير متكاملة . حيث يضع استاذ المادة في بعض الاحيان فقط الجزء الاول من المحاضرة من اجل الاطلاع على ما ستقوم بتحميله لاحقا . في نظام التعليم الالكتروني نوفر هذه الخدمة لكي نبقيك على اطلاع حول محتوى الملف الذي ستقوم بتحميله .