PowerPoint Template

Download Report

Transcript PowerPoint Template

Computer Programming ||
Chapter 1: Introduction & OOP
Mahmoud Rafeek Alfarra
Contents
www.cst.ps/staff/mfarra
www.facebook.com/mahmoudRfarra
About Lecturer
Description of course
Syllabus
Evaluation
Principles of OOP
Practice of (Array of students)
Project of (Array of cars)
2
About Lecturer
www.cst.ps/staff/mfarra
www.facebook.com/mahmoudRfarra
 Mahmoud Rafeek Alfarra


Certificates:

MSc Computer Science,2008, Pattern Recognition, AAST, Alexandria, Egypt.

BSc Computer Science,2004, The Islamic University of Gaza, Palestine.
Currently :



Lecturer in Computer Science & Information Technology (CSIT) department.

Board member of PICTA
Past:


Head Of Continuing Education and Community Service (CECS) department.
Head Computer Science & Information Technology (CSIT) department in CST (9-2012 To 9-2013).

Head Of Computer Center in CST (9-2009 To 10-2010)

Head of ITF1, ITF2 and ITF3

Lecturer in QOU, UP, CST and UCAS as Part Time
Contacts:


E-mail: [email protected] Site: http://www.cst.ps/staff/mfarra
YouTube channel: mralfarra1 FaceBook Page: mahmoudRfarra
3
Syllabus
www.cst.ps/staff/mfarra
www.facebook.com/mahmoudRfarra
Revision of OOP
 Exception Handling
 String manipulation
 Regular expression
 Files and Streams
 Connect applications with DBMS
 Streams-Based Sockets and Datagrams

4
Evaluation
www.cst.ps/staff/mfarra
www.facebook.com/mahmoudRfarra
20
Mid Theoretical Exam
70
Mid
100
40
Projects
30
Final Practical Exam
5
10
Attend.
Principles of OOP
www.cst.ps/staff/mfarra
www.facebook.com/mahmoudRfarra
To have a fine definition of OOP, Please
note what you are showing in your class
room now?
 Nice, what is the properties and behavior
of each of them ?
 This is the OOP style.

# of legs
Chairs
Tables
Teacher
PCs
Type of material
Color
.
.
.
.
.
6
Principles of OOP
www.cst.ps/staff/mfarra
www.facebook.com/mahmoudRfarra
OOP
7
Principles of OOP
www.cst.ps/staff/mfarra
www.facebook.com/mahmoudRfarra
Class & Object
 In your class room there is … tables,
chairs, students.
 Each one of them is object from class.

8
Principles of OOP
www.cst.ps/staff/mfarra
Each one is presented as
a variable in the Class
www.facebook.com/mahmoudRfarra
Attributes
Any Thing
Each one is presented as
a method in the Class
Behavior
9
Principles of OOP
www.cst.ps/staff/mfarra
www.facebook.com/mahmoudRfarra
Is a reserved word
The identifier of class
Must be as any variable
Access_modifiers class class_name {
// variables = attributes
Access_modifiers class_name() {
}
// behavior = methods
Always, the class has
a method called constructor
which gives initial values
to the attributes of class
}
10
Practice of (Array of students)
www.cst.ps/staff/mfarra
www.facebook.com/mahmoudRfarra
Name
Id
GPA
Course[,]
Array of
Student
Student
addCourse
info
calcGpa
…
11
Project of (car park)
www.cst.ps/staff/mfarra
www.facebook.com/mahmoudRfarra
Name
Id
Model
Price
Login
Logout
…..
Car
park
Car
CalcPeriod
CalcFare
info
…
…
Join the discussion on Sunday 6.10.2013
12
Mahmoud Rafeek Alfarra