Introduction to Object Oriented Programming-ppt-diaz.pdf
Document Details
Uploaded by Deleted User
Full Transcript
Introduction to Object Oriented Programming Michael Vincent Diaz, CpE, RSO, STS What is Object Oriented Programming? A computer programming model that organizes software design around data, or objects, rather than functions and logic. OOP is faster and easier to execute. ...
Introduction to Object Oriented Programming Michael Vincent Diaz, CpE, RSO, STS What is Object Oriented Programming? A computer programming model that organizes software design around data, or objects, rather than functions and logic. OOP is faster and easier to execute. OOP provides clear structure for the programs. OOP helps to keep C++ code DRY or Don’t Repeat Yourself”. And makes the code easier to maintain, modify, and debug. OOP makes it possible to create fill reusable appplication with less code and shorter development time. What are Classes and Objects? Classes and objects are two main aspects of OOP. Definition of Class: it is a template for objects. Definition of Objects: is an instance of a class. Examples of Class and Objects CLASS OBJECTS FRUIT APPLE ORANGE BANANA CLASS OBJECTS CAR TOYOTA MITSUBISHI FORD In our examples, Fruit is the term used to be a Class while Apple, Banana, and Orange are considered to be as Objects. In a simpler explanation, Class is General while Objects are Specifics. What is a System? OOP in my personal opinion can be regarded as a System. Why? Because a system defined as a set of things working together as parts of a mechanism or an interconnecting network. Moreover, a system is also defined as a set of principles or procedures according to which something is done; an organized framework or method. Example of a System Educational System Non- Registrar Admission Office Program Finance Administrativ Clinic Administrativ e Departmen Departmen t e Office t Now as you can see in the example, We are discussing about an Education System as we all know that in our example, an Education system is composed of different units/departments. If you are going to combined them all; than a clear or specific purpose is created. By having this different departments at one; it enables the formulation of a system which is called an Education System. If we are going to omit one than this defies the purpose of the system as a whole. In a system, unity and commonality is very important. An Education System cannot be 100% if there is no registrar. An Education System cannot be 100% if you are going to insert a Party Club (Disco) wherein this is contrary/ or defies the essence of the existence of an Education System.