1 / 13

Object Oriented Programming Class

COPY http://dataq.lecture.ub.ac.id/. Object Oriented Programming Class . Lecturer: Mahendra Data, S.Kom. About me…. COPY http://dataq.lecture.ub.ac.id/. Mahendra Data, S.Kom E-mail: mahendra.data@ub.ac.id Blog: http://dataq.lecture.ub.ac.id/ http://dataq.wordpress.com/

zared
Download Presentation

Object Oriented Programming Class

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. COPY http://dataq.lecture.ub.ac.id/ Object Oriented ProgrammingClass Lecturer: Mahendra Data, S.Kom

  2. About me… COPY http://dataq.lecture.ub.ac.id/ Mahendra Data, S.Kom E-mail: mahendra.data@ub.ac.id Blog: http://dataq.lecture.ub.ac.id/ http://dataq.wordpress.com/ C++, Delphi, JAVA, C#, Python

  3. Score COPY http://dataq.lecture.ub.ac.id/ • 60% from an assignment, project, etc • 15% from middle semester test (UTS) • 25% from end semester test (UAS) Any objection?

  4. COPY http://dataq.lecture.ub.ac.id/ Object Oriented Programming Thinking in

  5. What is OOP? COPY http://dataq.lecture.ub.ac.id/ it’s a new way of thinking in programming Object-oriented programming relates the programming activity of modelling or simulation. Objects are identified by a correspondence with the objects found in the real world and used to model those operations.

  6. Thinking in OOP COPY http://dataq.lecture.ub.ac.id/ I have some function and unique serial number Hi, I'm an “object” called calculator So calculator is a “class” We call it “Attribute and Method” We call it “object composition” I have so many friend like me but with different serial number. We call it “instance” I also builded from some other objects

  7. Thinking in OOP COPY http://dataq.lecture.ub.ac.id/ I can calculate addition, subtraction , multiplication, division and other mathematics function Display, button, battery, box, processor are the components that build me. We call it “inheritance” I have some child, they are scientific calculator, programmer calculator and statistics calculator. They inherit my features but also have several improvement that I didn’t have.

  8. Thinking in OOP COPY http://dataq.lecture.ub.ac.id/ Let me introduce some of my child Hi, I am scientific calculator Hi, I am programmer calculator Some of our button is same, but it can behave in the different way. We call it “polymorphism”

  9. Thinking in OOP COPY http://dataq.lecture.ub.ac.id/ We call it “encapsulation” I bet you didn't how the process inside me. But don’t worry, You can give me command by pressing each of my button. We categorize this function as “public method” You know what will happen if you press each of my button, right? We categorize this button as “public attribute”

  10. Set this as our mindset! COPY http://dataq.lecture.ub.ac.id/ Treat a problem like the real object in the real world! Visualize this object in the virtual world Attributes and methods that user don’t need to know should be encapsulate! List the attributes and methods that visible to the user Make class hierarchy for class that have similar function It will help you to make the system simple and clean

  11. Let's practice! COPY http://dataq.lecture.ub.ac.id/ I have a “tamiya”. Do you know tamiya? This is tamiya! I want to simulate this tamiya in the computer. So I can decide what kind of part that I need to change if I want to boost the performance.

  12. Let's practice! COPY http://dataq.lecture.ub.ac.id/ Can you help me to build an OOP program design? I need a clean an simple program that can be extend if I need some improvement or I have to simulate the other type of tamiya. Maybe you start by listing the object that involve in this simulation? And of course after that you need to listing the attributes and methods for each object.

  13. Group assignment COPY http://dataq.lecture.ub.ac.id/ Its time to learn JAVA programming!!! Study basic JAVA programming language like print, read input, if, do, for, define a class and making an instance. In the next meeting we will have a group quiz! (^.^)

More Related