170 likes | 481 Views
Computer Programming ||. Chapter 1: Introduction & OOP. Contents. About Lecturer. Description of course. Syllabus. Evaluation. Principles of OOP. Practice of (Array of students). Project of (Array of cars). About Lecturer. Mahmoud Rafeek Alfarra Certificates:
E N D
Computer Programming || Chapter 1: Introduction & OOP
Contents About Lecturer Description of course Syllabus Evaluation Principles of OOP Practice of (Array of students) Project of (Array of cars)
About Lecturer • MahmoudRafeekAlfarra • 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.psSite: http://www.cst.ps/staff/mfarra • YouTube channel: mralfarra1FaceBook Page: mahmoudRfarra
Syllabus • Revision of OOP • Exception Handling • String manipulation • Regular expression • Files and Streams • Connect applications with DBMS • Streams-Based Sockets and Datagrams
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. # of legs Type of material Color . . . Chairs Tables Teacher PCs . .
Principles of OOP OOP Encapsulation Abstraction Polymorphism Inheritance
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 Attributes Each one is presented as a variable in the Class Behavior Any Thing Each one is presented as a method in the Class
Principles of OOP Is a reserved word The identifier of class Must be as any variable Access_modifiersclassclass_name { // variables = attributes Access_modifiersclass_name() { } // behavior = methods } Always, the class has a method called constructor which gives initial values to the attributes of class
Practice of (Array of students) Name Id GPA Course[,] Array of Student Student addCourse info calcGpa …
Project of (car park) Name Id Model Price Login Logout ….. attributes Car Car park behavior CalcPeriod CalcFare info … … Join the discussion on Sunday 6.10.2013