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

What is object oriented programing

Share |
الكلية كلية العلوم للبنات     القسم قسم الحاسبات     المرحلة 2
أستاذ المادة احمد علي حسين الجنابي       08/10/2017 17:48:29
What is object oriented programing
Last year we have explored the structure of a simple program that starts execution at
main() and enables you to declare local and global variables and constants and branch
your execution logic into function modules that can take parameters and return
values. All this is very similar to a procedural language like C, which has no object-
orientation to it. In other words, you need to learn about managing data and
connecting methods to it.
The Concept of Classes and Objects
Imagine you are writing a program that models a human being, like yourself. This
human being needs to have an identity: a name, a date of birth, a place of birth, and
a gender. The human can perform certain functions, such as talk and introduce him-
or herself, among others. Now, the former information is data about the human being,
whereas the latter information comprises functions as illustrated by Figure below.

To model a human, what you now need is a construct that enables you to group within
it the attributes that define a human (data) and the activities a human can perform
(methods that are similar to functions) using the available attributes. This construct is
the class.

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