Mahmoud Rafeek Alfarra Computer Programming || Chapter 1: Introduction & OOP
Contents Principles of OOP Evaluation Syllabus Description of course About Lecturer Practice of (Array of students) Project of (Array of cars)
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 ( To ). Head Of Computer Center in CST ( To ) Head of ITF1, ITF2 and ITF3 Lecturer in QOU, UP, CST and UCAS as Part Time Contacts: Site: YouTube channel: mralfarra1 FaceBook Page: mahmoudRfarra 3
Syllabus Revision of OOP Exception Handling String manipulation Regular expression Files and Streams Connect applications with DBMS Streams-Based Sockets and Datagrams 4
Evaluation Mid 20 Mid Theoretical Exam 40 Projects 10 Attend. 30 Final Practical Exam
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 Chairs Tables Teacher PCs. Chairs Tables Teacher PCs. # of legs Type of material Color. # of legs Type of material Color.
Principles of OOP OOP
Principles of OOP Class & Object In your class room there is … tables, chairs, students. Each one of them is object from class
Principles of OOP 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
Principles of OOP 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
Practice of (Array of students) Student Name Id GPA Course[,] Name Id GPA Course[,] addCourse info calcGpa … addCourse info calcGpa … Array of Student
Project of (car park) 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
Mahmoud Rafeek Alfarra