Download presentation
Presentation is loading. Please wait.
Published byDwayne Collins Modified over 9 years ago
1
Mahmoud Rafeek Alfarra Computer Programming || Chapter 1: Introduction & OOP
2
Contents Principles of OOP Evaluation Syllabus Description of course About Lecturer www.cst.ps/staff/mfarra www.facebook.com/mahmoudRfarra 2 Practice of (Array of students) Project of (Array of cars)
3
About Lecturer Mahmoud Rafeek Alfarra Certificates: MSc Computer Science,2008, Pattern Recognition, AAST, Alexandria, Egypt. BSc Computer Science,2004, The Islamic University of Gaza, Palestine. Currently : Head Of Continuing Education and Community Service (CECS) department. Lecturer in Computer Science & Information Technology (CSIT) department. Board member of PICTA Past: 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: m.farra@cst.ps Site: http://www.cst.ps/staff/mfarram.farra@cst.pshttp://www.cst.ps/staff/mfarra YouTube channel: mralfarra1 FaceBook Page: mahmoudRfarra www.cst.ps/staff/mfarra www.facebook.com/mahmoudRfarra 3
4
Syllabus Revision of OOP Exception Handling String manipulation Regular expression Files and Streams Connect applications with DBMS Streams-Based Sockets and Datagrams www.cst.ps/staff/mfarra www.facebook.com/mahmoudRfarra 4
5
Evaluation 5 100 70 Mid 20 Mid Theoretical Exam 40 Projects 10 Attend. 30 Final Practical Exam
6
Principles of OOP 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. www.cst.ps/staff/mfarra www.facebook.com/mahmoudRfarra 6 Chairs Tables Teacher PCs. Chairs Tables Teacher PCs. # of legs Type of material Color. # of legs Type of material Color.
7
Principles of OOP www.cst.ps/staff/mfarra www.facebook.com/mahmoudRfarra 7 OOP
8
Principles of OOP Class & Object In your class room there is … tables, chairs, students. Each one of them is object from class. www.cst.ps/staff/mfarra www.facebook.com/mahmoudRfarra 8
9
Principles of OOP www.cst.ps/staff/mfarra www.facebook.com/mahmoudRfarra 9 Any Thing Attributes Behavior Each one is presented as a variable in the Class Each one is presented as a variable in the Class Each one is presented as a method in the Class Each one is presented as a method in the Class
10
Principles of OOP www.cst.ps/staff/mfarra www.facebook.com/mahmoudRfarra 10 Access_modifiers class class_name { // variables = attributes Access_modifiers class_name() { } // behavior = methods } 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 Is a reserved word The identifier of class Must be as any variable
11
Practice of (Array of students) www.cst.ps/staff/mfarra www.facebook.com/mahmoudRfarra 11 Student Name Id GPA Course[,] Name Id GPA Course[,] addCourse info calcGpa … addCourse info calcGpa … Array of Student
12
Project of (car park) www.cst.ps/staff/mfarra www.facebook.com/mahmoudRfarra 12 Car Name Id Model Price Login Logout Name Id Model Price Login Logout CalcPeriod CalcFare info … CalcPeriod CalcFare info … Car park ….. … … attributes behavior Join the discussion on Sunday 6.10.2013
13
Mahmoud Rafeek Alfarra
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.