Download presentation
1
Object Oriented Programming Class
COPY Object Oriented Programming Class Lecturer: Mahendra Data, S.Kom
2
COPY About me… http://dataq.lecture.ub.ac.id/
Mahendra Data, S.Kom Blog: C++, Delphi, JAVA, C#, Python
3
COPY Score 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
Object Oriented Programming
COPY Thinking in Object Oriented Programming
5
COPY What is OOP? 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
COPY Thinking in OOP 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
We call it “inheritance”
Thinking in OOP COPY 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
COPY Thinking in OOP 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
We call it “encapsulation” We categorize this function as
Thinking in OOP COPY 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
It will help you to make the system simple and clean
Set this as our mindset! COPY 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
COPY Let's practice! 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
COPY Let's practice! 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
COPY Group assignment Its time to learn JAVA programming!!!
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! (^.^)
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.