KONSEP DASAR PEMROGRAMAN BERORIENTASI OBJEK

Saifur Rohman Cholil
23 Mar 202221:26

Summary

TLDRThis video script delves into the foundational concepts of Object-Oriented Programming (OOP), contrasting it with procedural programming. It introduces the need for OOP through a case study involving shape manipulation and sound effects, highlighting the benefits of OOP such as code reusability, modularity, and ease of maintenance. The script illustrates the differences between procedural and OOP approaches using the examples of Larry's procedural method and Bridge's OOP method, emphasizing OOP's advantages in adaptability and extensibility. It concludes by discussing the tools used in OOP, such as Java, PHP, and C++, and encourages viewers to understand the paradigm shift from procedural to OOP for better program analysis and structure.

Takeaways

  • πŸ˜€ The video discusses the concept of Object-Oriented Programming (OOP), focusing on its importance and fundamental concepts.
  • πŸ† It presents a case study involving a competition between two individuals, Larry and Bridge, who are tasked with creating code for shapes that rotate and play sound when clicked, highlighting the differences between procedural and OOP approaches.
  • πŸ” Larry uses a procedural approach, focusing on writing specific procedures for each action like rotation and sound playback, which might become cumbersome with changes in requirements.
  • πŸ’‘ Bridge adopts an OOP approach by creating classes for each shape, encapsulating properties and methods, making the code more structured and easier to manage when new requirements emerge.
  • πŸ“š The video emphasizes the benefits of OOP, such as better organization, reusability of code, modularity, and ease of understanding and maintaining the code.
  • πŸ”„ The flexibility and extensibility of OOP are highlighted, as it allows for adding new features or shapes without major changes to the existing codebase.
  • πŸ› οΈ The video mentions tools used in OOP, such as Java, PHP, and C++, indicating that most modern programming languages support OOP concepts.
  • πŸ€” It poses a question to the viewers about which approach, procedural or OOP, is more advantageous, suggesting that OOP provides a clear path for complex and large-scale projects.
  • 🧩 The concept of 'modularity' in OOP is explained, where functions and data are bundled into classes, making it easier to identify and manage components of the program.
  • πŸ”‘ The video touches on the key features of OOP, including encapsulation, inheritance, and message passing, which are essential for solving domain problems.
  • 🌐 The transcript concludes with an invitation for viewers to ask questions on e-learning platforms or group chats, emphasizing the importance of understanding OOP concepts.

Q & A

  • What is the main topic discussed in the video script?

    -The main topic discussed in the video script is the concept of object-oriented programming (OOP), including its benefits, differences from procedural programming, and its application in software development.

  • What are the four key points covered in the video script regarding OOP?

    -The four key points covered are: 1) The need for OOP, 2) The difference between procedural and OOP, 3) The concept of an object-oriented system, and 4) The tools used in OOP.

  • What is the example given to illustrate the use of OOP in the video script?

    -The example given is a GUI with shapes like square, circle, and triangle that rotate 360 degrees and play sound files when clicked, demonstrating the use of classes and objects in OOP.

  • Who are Larry and Bridge, and what programming approaches do they represent?

    -Larry and Bridge are characters in the script representing two different programming approaches. Larry represents procedural programming, while Bridge represents object-oriented programming.

  • What is the advantage of OOP demonstrated by Bridge's approach in the script?

    -Bridge's approach using OOP allows for more flexibility and extensibility. When new requirements come in, such as adding an 'Ameba' shape, Bridge can simply create a new class without modifying existing code, unlike Larry who has to alter his procedural code.

  • What is the significance of the 'Ameba' example in the script?

    -The 'Ameba' example illustrates how OOP can easily accommodate changes in requirements. When the requirement to add an 'Ameba' shape comes up, it can be implemented as a new class without affecting the existing codebase, showcasing the adaptability of OOP.

  • What are the benefits of OOP mentioned in the video script?

    -The benefits of OOP mentioned include better organization and structuring of code, reusability of code for similar projects, modularity, ease of understanding and debugging, and improved efficiency in developing complex and large-scale programs.

  • How does the video script differentiate between procedural programming and OOP?

    -The script differentiates by explaining that procedural programming focuses on a sequence of instructions and functions to manipulate data, whereas OOP focuses on objects that encapsulate both data and functions, working together to solve problems.

  • What is the role of 'inheritance' in OOP as discussed in the video script?

    -Inheritance in OOP allows new classes to derive properties and behaviors from existing classes, which helps in solving domain problems more efficiently by reusing and extending existing code.

  • Which programming languages are mentioned in the script as supporting OOP?

    -The script mentions Java and PHP as examples of programming languages that support OOP. It also implies that almost all modern programming languages now support OOP.

  • How does the video script conclude the comparison between procedural programming and OOP?

    -The script concludes by summarizing the advantages of OOP, such as better organization, reusability, modularity, and ease of maintenance, especially in the context of changing project specifications.

Outlines

00:00

πŸ“š Introduction to Object-Oriented Programming

The script introduces the concept of object-oriented programming (OOP) in the context of a programming course. It outlines the importance of OOP, the differences between procedural and object-oriented approaches, and the tools used in OOP. A case study is presented involving a GUI with shapes that rotate and play sound when clicked, illustrating the application of OOP. The narrative contrasts the efforts of two individuals, Larry and Bridge, who are tasked with coding this functionality using either procedural or OOP methods, highlighting the initial steps taken by Larry in a procedural manner.

05:00

πŸ”„ Procedural vs. Object-Oriented Approaches

This paragraph delves deeper into the procedural approach by Larry, who creates specific procedures for rotating shapes and playing sounds. It then contrasts this with Bridge's object-oriented approach, where he writes classes for each shape, allowing for more organized and scalable code. The benefits of OOP, such as code reusability and separation of concerns, are implied through Bridge's ease of adding new features, like the Ameba shape, with its own sound file, to the existing program without altering previously tested code.

10:02

πŸ’‘ The Advantages of Object-Oriented Programming

The script highlights the advantages of OOP, such as flexibility and extensibility, using the metaphor of a project manager's changing specifications. It points out that OOP allows for easier modifications and additions to the codebase without the need to rewrite or deeply interfere with existing, tested code. The paragraph also emphasizes the conceptual benefits of OOP, such as the ability to encapsulate data and functions into objects, making the code more modular and easier to understand and maintain.

15:02

πŸ› οΈ Object-Oriented Systems and Tools

The paragraph discusses the nature of object-oriented systems and the tools that support OOP, such as Java, PHP, and C++. It mentions that most modern programming languages now include support for OOP, indicating its widespread adoption and relevance in software development. The speaker encourages understanding the basic concepts of OOP and its differences from procedural programming, offering avenues for further questions and discussion, such as through e-learning platforms or group chats.

20:05

🌟 Conclusion on Object-Oriented Programming

In conclusion, the script summarizes the key points about OOP, emphasizing its structured approach to coding, the ease of code analysis for complex programs, and the efficiency it brings to software development. It distinguishes OOP from procedural programming by pointing out that OOP focuses on objects and their interactions rather than a sequence of instructions. The script ends with an invitation for further inquiries and a sign-off that includes well-wishes in the form of a traditional Islamic greeting, followed by music and applause.

Mindmap

Keywords

πŸ’‘Object-Oriented Programming (OOP)

Object-Oriented Programming is a programming paradigm that uses 'objects' to design applications and software. These objects are instances of 'classes', which encapsulate data and functions together. In the video, OOP is the central theme, emphasizing the benefits of using objects to structure code, such as better organization and reusability. The script mentions OOP in the context of comparing it with procedural programming, highlighting its advantages in scenarios where specifications are likely to change.

πŸ’‘Procedural Programming

Procedural Programming is a paradigm where the focus is on a sequence of instructions to perform a task. It is contrasted with OOP in the script, where it is described as breaking down a program into smaller procedures or functions that manipulate data. The video uses the example of Larry's approach to coding, which is procedural, to illustrate the differences between procedural and OOP in terms of code flexibility and maintenance.

πŸ’‘Class

A 'Class' in OOP is a blueprint for creating objects. It defines the properties (attributes) and methods (functions) that the object will have. The script refers to classes as the building blocks of OOP, showing how Bridge uses classes to create different shapes with distinct behaviors, such as rotating and playing sound, which encapsulates the data and functions within the class.

πŸ’‘Inheritance

Inheritance is a fundamental concept in OOP that allows a class to inherit properties and methods from another class. This promotes code reusability and can be used to create a hierarchy of classes. The script touches on inheritance as part of the OOP paradigm, although it does not provide a specific example from the narrative.

πŸ’‘Encapsulation

Encapsulation in OOP refers to the bundling of data with the methods that operate on that data. It is a means of preventing direct access to some of an object's components, which helps to maintain the integrity of the object. The script explains encapsulation as part of the definition of OOP, emphasizing how it combines functions and data into a single unit, the object.

πŸ’‘Polymorphism

Polymorphism allows objects to be treated as instances of their parent class rather than their actual class. The ability to use a uniform interface to different underlying forms makes code more flexible and extensible. Although not explicitly mentioned in the script, polymorphism is implied in the context of OOP's benefits, such as the ease of adding new shapes without altering existing code.

πŸ’‘GUI (Graphical User Interface)

A GUI is a type of user interface that allows users to interact with software through graphical icons and visual indicators. The script describes a scenario where users click on shapes in a GUI, triggering actions like rotation and sound playback, demonstrating the practical application of OOP in creating interactive and responsive interfaces.

πŸ’‘Extensibility

Extensibility refers to the ability of a program to be expanded or modified easily. In the context of the video, extensibility is highlighted as a key benefit of OOP, where adding new features, such as a new shape 'Ameba', can be done with minimal changes to existing code, showcasing the flexibility of OOP.

πŸ’‘Modularity

Modularity in programming refers to the practice of organizing a program into separate, self-contained modules or units. The script mentions the procedural approach as lacking modularity compared to OOP, where each class represents a module that can be developed and maintained independently.

πŸ’‘Code Reusability

Code reusability is the ability to use existing code in new programs or applications without having to rewrite it. The script illustrates the concept of reusability in OOP through the example of creating classes for different shapes that can be used to instantiate multiple objects with the same behavior, thus saving development time and effort.

πŸ’‘Specification Changes

Specification changes refer to the alterations or updates made to the requirements of a software project. The script uses the concept of specification changes to highlight the advantage of OOP over procedural programming, where changes in requirements can be accommodated more easily without the need to rewrite existing code extensively.

Highlights

Introduction to the concept of object-oriented programming (OOP).

Four key points to be discussed in the lecture: the need for OOP, the difference between procedural and OOP, OOP systems, and the tools used in OOP.

A case study involving a competition between two individuals, Larry and Bridge, on creating code for shapes with GUI interaction.

Larry's procedural approach to coding, focusing on important procedures for rotating shapes and playing sound files.

Bridge's object-oriented approach, creating separate classes for each shape with methods for rotation and sound playback.

The flexibility and extensibility of OOP demonstrated when new specifications are introduced, such as the addition of an amoeba shape.

Larry's struggle with changing specifications and the need to modify existing procedural code.

Bridge's ease in adapting to changes by simply creating a new class for the amoeba without altering existing code.

The benefits of OOP in terms of code reusability and structured programming.

Explanation of how OOP simplifies code maintenance and readability through modularity.

Comparison between procedural programming, which views a program as a sequence of instructions, and OOP, which sees it as a collaboration of objects.

The active role of objects in OOP, as opposed to the passive role of data in procedural programming.

The importance of understanding OOP concepts for analyzing and creating complex and large-scale programs.

Discussion on the differences between procedural and OOP in terms of how they handle data and functions.

The concept of encapsulation in OOP, bundling properties and operations within objects.

Inheritance as a feature of OOP, allowing for the creation of new classes based on existing ones.

Overview of object-oriented systems and the languages that support OOP, such as Java, PHP, and C++.

Encouragement for students to understand the basic concepts of OOP and to ask questions through various platforms.

Transcripts

play00:01

Hai

play00:04

smile rohmanir Rohim

play00:06

Assalamualaikum warahmatullahi

play00:08

wabarakatuh Apa kabar semuanya semoga

play00:13

dalam keadaan sehat walafiat

play00:16

diberikan panjang umur diberikan banyak

play00:18

rezeki

play00:19

kali ini akan saya bahas tentang konsep

play00:24

dasar pemrograman berorientasi objek

play00:28

jadi pada matakuliah PPOB atau

play00:31

pemrograman berorientasi objek

play00:36

hai hai

play00:38

Hai lava daripada kali ini yaitu ada

play00:42

empat penting yang akan saya sampaikan

play00:45

yang pertama we need hop

play00:50

Kenapa kita membutuhkan noob atau object

play00:54

oriented programming

play00:56

Kemudian yang kedua adalah the

play00:58

difference of procedural n o p

play01:03

Hai Apa perbedaan antara program and

play01:06

procedural dengan pemrograman

play01:09

berorientasi objek kemudian yang ketiga

play01:12

adalah object-oriented an

play01:15

object-oriented sistem

play01:19

Hai kemudian yang keempat adalah tools

play01:21

yang dipakai pada hop

play01:28

kita Plus yang pertama yaitu why we need

play01:33

of Kenapa kita membutuhkan hop jadi di

play01:38

sini ada

play01:39

studi kasus ya Ada studi kasus nanti ada

play01:43

dua orang yang berkompetisi ketika

play01:49

membuat coding yang ada di sini ke ini

play01:53

Hai contohnya ya atau kasusnya adalah

play01:57

Hai dervin Piece eps onkey

play02:00

Square circle Henna triangle when the

play02:05

user Clicks on asset the ship will

play02:08

rotate clockwise

play02:11

three hundred sixty Degrees ia on the

play02:15

way around and play and the eyes sound

play02:19

files Pasifik studed particular sip Jadi

play02:24

ini maksudnya

play02:26

akan ada bentuk sebuah GUI atau grafik

play02:30

user interface gravidio seri interface

play02:33

ini

play02:35

Hai

play02:36

yaitu adalah persegi disini adalah

play02:39

persegi

play02:40

kemudian ada lingkaran

play02:44

dan lingkaran nah ketika pengguna nanti

play02:47

akan mengkilap Suatu bentuk untuk dari

play02:51

ketiga ini ketika kita nanti akan diklik

play02:53

maka bentuk ini akan berputar

play02:56

360Β°

play02:58

yaitu sepanjang jalan kemudian nanti

play03:01

akan memutar sebuah file suara file

play03:06

suara ini

play03:08

Hai ia FT dalam bentuk

play03:11

Hai tertentu ini ada kasus seperti ini

play03:16

Hai lah dari bentuk yang tadi ya untuk

play03:20

yang tadi ini akan dikompetisikan

play03:22

jadi ada dua orang yang pertama namanya

play03:27

adalah Larry Kemudian yang kedua adalah

play03:30

bridge ini diberikan spesifikasi yang

play03:33

sama untuk merebutkan sebuah kursi

play03:37

jabatan dari pimpinannya nah disini ini

play03:41

supaya nanti untuk membedakan jadi Larry

play03:43

ini dia

play03:45

sing prosedural atau berpikir

play03:49

prosedur kemudian yang Blade ini adalah

play03:52

Ting pop atau berfikirnya adalah object

play03:55

oriented programming

play03:58

kita akan lihat apa yang dikerjakan oleh

play04:01

Larry dan apa yang dikerjakan oleh

play04:03

Bridge

play04:05

Hai length pertama ini Larry dengan

play04:08

kubusnya

play04:11

Hai hedon

play04:13

decillion Thanks before Larry Seta

play04:17

potrait think is important procedures

play04:19

hero trotted inflation in no time yang

play04:24

jadi Larry disini

play04:27

seperti yang telah dilakukan

play04:29

kecil ini triliunan Ya seperti yang

play04:32

dilakukan triwulan kali sebelumnya Larry

play04:35

mulai menulis prosedur pentingnya ya

play04:39

important prosedur-prosedur momen

play04:41

pentingnya dia menulis rotted eh atau

play04:45

memutar dan memutar suara dari

play04:49

Oh ya dalam waktu yang singkat Jadi

play04:52

pertama kali ini laris ya dia memutar

play04:57

menggunakan prosedur Ia yang diputar

play05:00

sama Sonya ini adalah shootnya rotip

play05:03

kemudian ini untuk bentuknya ya kemudian

play05:07

ini untuk suaranya jadi dianya simpel

play05:10

membikin seperti ini ini untuk

play05:12

yang dikerjakan oleh Larry Kemudian yang

play05:16

kedua

play05:16

[Musik]

play05:18

Hai yang dikerjakan oleh Brett ya di

play05:20

laptop dia di sebuah kafe

play05:22

Breath ini brurod Crush for Each of the

play05:27

Three sip Jadi Breath ini menulis kelas

play05:32

yang menurut kelas untuk masing-masing

play05:36

dari tiga bentuk jadi tadi ada tiga

play05:38

tentu yang pertama bentuk atau bentuk

play05:41

persegi ya Kemudian yang kedua adalah

play05:43

bentuk lingkaran yang ketiga adalah

play05:45

segitiga nah yang dilakukan thread ini

play05:48

memang kategorinya lebih

play05:52

Hai tidak simpel ya di awal tidak simple

play05:54

karena dia nanti akan membikin sebuah

play05:57

kelas-kelas yang pertama adalah kelas

play05:58

persegi ini kodenya Ya dikasih kode

play06:01

untuk berputar kemudian dikasih kode

play06:04

untuk memutar sebuah

play06:08

the song ya ini untuk

play06:11

Hai

play06:12

yang dilakukan oleh Bridge kemudian

play06:14

lingkarannya ya lingkarannya juga sama

play06:17

dibuat sama Kemudian untuk segitiga juga

play06:19

sama Jadi yang pertama ini memang kalau

play06:22

kita lihat banyaknya Larry lebih simple

play06:24

karena dia berpikir prosedural kemudian

play06:27

yang dilakukan oleh Brett ini dia

play06:28

dipisahkan menjadi tiga bentuk class Nah

play06:33

kita lihat lagi

play06:34

hai hai

play06:36

Hai jadi di sini kalau misalkan

play06:39

ditambahkan spesifikasi ketika kita

play06:42

ditambahkan spesifikasi nama

play06:44

spesifikasinya disini adalah Ami by atau

play06:47

amoeba Der wiel Ameba Ameba sip on the

play06:53

screen Windows aders when the user

play06:56

Clicks on the Ameba It will rotted like

play07:00

the others and play out his sound file

play07:06

jadi misalnya akan ada bentuk amoeba ya

play07:10

ini bentuknya seperti ini

play07:12

di dalam layar atau dengan kata lain

play07:16

ketika ketika pengguna nanti akan

play07:19

mengklik amuba ini maka

play07:24

Hai akan otomatis

play07:28

Hai lampirkan atau memutar dari suara

play07:32

berekstensi nya adalah dot.tv ini

play07:36

kita akan lihat

play07:39

kemudian yang dilakukan oleh Larry

play07:43

dengan kubusnya yang dilakukan oleh

play07:46

Larry jadi dia The Rocket prosedur wood

play07:51

still Work with the use Club able too

play07:57

much Vietnam to equal subscribe bab play

play08:02

Sound Good have to change and What the

play08:07

heck is a dog file jadi yang dilakukan

play08:14

oleh Larry dengan kubusnya

play08:16

prosedur rotasi atau prosedur perputaran

play08:20

itu tetap akan bekerja ya Karena dia

play08:23

sudah dibuat sebelumnya ya dia tetap

play08:27

dibuat sebelumnya Hai kode tersebut

play08:30

menggunakan

play08:32

the

play08:33

band pencarian untuk mencocokkan ya

play08:37

ini mencocokkan xef6 Iya bentuknya untuk

play08:41

mencocokkan xef6 dengan grafik dari

play08:45

bentuk yang sebenarnya Jadi nanti dia

play08:48

akan melakukan pencarian ya tentang

play08:50

perputaran dari bentuknya tetapi tetapi

play08:54

disini

play08:56

memutar suaranya harus berubah

play09:00

Kenapa harus berubah karena ini

play09:03

ekstensinya adalah

play09:05

babyshop ya Dodi file-nya sehingga dia

play09:09

membikin seperti ini lessons at namm

play09:12

Jadi jika ini adalah Ameba Usep nontu

play09:17

lengkap Widya kemudian nanti dari air

play09:19

ini ya jika tidak ya jika bukan amoeba

play09:23

dia menggunakan IAP tetapi jika

play09:27

amiba maka dia menggunakan dot Disini

play09:32

sebagai untuk pemutar suaranya sehingga

play09:36

picture of

play09:38

not to be shot Abdel bab it's tell me in

play09:44

squishy touch previously test out of all

play09:50

people is out now that No Matter What

play09:54

the Project Manager say the spike always

play09:57

change artinya

play10:01

Hai Ternyata bukan masalah besar yang

play10:03

dialami oleh Larry ya tetapi tetap

play10:07

membuatnya mual eh bahasanya seperti itu

play10:10

tetap

play10:11

membuatnya mual untuk menyentuh kode

play10:15

yang telah diuji sebelumnya

play10:17

dari semua orang di harus tahu bahwa apa

play10:21

yang dikatakan manajer proyek

play10:24

bahwa nanti spesifikasinya akan selalu

play10:28

berubah

play10:29

ini yang membuat mual ini 4 Maret nah

play10:32

yang dilakukan bread ya dengan di

play10:35

laptopnya dia berada di pantai

play10:39

Breath Smile

play10:41

ships is Margarita enrich lose something

play10:47

the things I love about

play10:51

so check oriented was that He didn't

play10:55

have to touch chord gitar ready test and

play11:00

delivered by ability

play11:03

Hai extensibility gimas reflecting on

play11:07

the benefit of

play11:09

Hai

play11:10

object-oriented drag yang dilakukan

play11:13

bread ngepet ini hanya tersenyum Ya dia

play11:15

tersenyum dia tersenyum sambil apa ini

play11:18

menyesap Margarita ya margherita itu

play11:23

sebangsa kopel kopel yang dibuat dengan

play11:26

teknologi dan jus jeruk itu yang dia

play11:30

makan adalah Margarita yang mereka kita

play11:33

jadi dia sambil santai sambil tersenyum

play11:34

kemudian dia hanya Menulis satu kelas

play11:37

baru ya dianya menuduh satu pas baru

play11:39

dengan nama amiba ini

play11:43

jadi terkadang hal yang paling dia sukai

play11:46

dari object-oriented ini adalah tidak

play11:48

perlu menyentuh kode yang sudah diuji

play11:52

dan dikirimkan jadi tidak perlu intinya

play11:55

adalah fleksibilitas

play11:57

ekstensibilitas

play11:59

ini merupakan benefit atau merupakan

play12:02

keuntungan atau merupakan manfaat dari

play12:05

object oriented programming ini nanti

play12:08

kalau rubah lagi dia akan menambahkan

play12:11

lagi Tetapi kalau disini BEJ sini hanya

play12:15

dia tinggal membuat kelas dia tinggal

play12:17

membuat kelas-kelasnya namanya aniba

play12:21

kemudian dia berputar dia menyalakan

play12:26

Hai musik ya sound ya soalnya adalah.net

play12:29

Sonia ini ini lebih lebih simple tetapi

play12:32

kata kaleri nanti dia akan menambahkan

play12:34

padahal padahal dari Project Manager ini

play12:37

mengatakan bahwa

play12:38

spesifikasinya akan selalu berubah enak

play12:43

dari sini mungkin bisa kita lihat ya

play12:46

siapa pemenangnya Ya siapa pemenangnya

play12:48

Apakah menggunakan prosedural ataukah

play12:50

menggunakan object oriented programming

play12:54

Nah kita simpulkan ya

play12:57

Kenapa kita butuh op atau object

play13:00

oriented programming Jadi yang pertama

play13:02

dengan noob ya dengan obd bahwa

play13:07

kode-kode yang dibuat menjadi lebih

play13:09

rapih dan terstruktur saya kita lihat ya

play13:12

kalau terjadi perubahan itu kita hanya

play13:14

tinggal mengubah dari kelas yang sudah

play13:17

kita buat ya misalkan musiknya tapi dari

play13:20

Ami by Nikita

play13:22

berubah ya kita tinggal mengubah dari

play13:24

kelas yang ada di

play13:26

tetapi beda yang dilakukan oleh

play13:27

prosedural terpilihnya kedua Kenapa kita

play13:31

membutuhkan op dengan op proses

play13:36

reus reus itu artinya menggunakan

play13:39

kembali yang menggunakan kembali

play13:42

kode-kode yang dibuat untuk Project yang

play13:45

hampir sama jadi kita bisa menggunakan

play13:49

kembali kode-kode untuk Project yang

play13:51

hampir sama

play13:52

mudah karena kode yang dibuat rapi dan

play13:56

terstruktur ini kenapa kita membutuhkan

play14:00

oke yang ketiga alasannya yaitu Bahwa

play14:05

konsepnya dari OP ini per modul atau

play14:09

plus tadi yang sudah pernah

play14:11

kita

play14:13

sampaikan jadi pernah buat fungsi atau

play14:17

prosedur di bahasa pemrograman c atau D

play14:21

bahasa pemrograman PHP

play14:23

tinggal panggilkan saja

play14:26

fungsinya kalau error pasti mudah

play14:28

diketahui karena terbaca dari fungsi

play14:30

yang dipanggil Nah itulah uang Maksudnya

play14:34

konseptor modul Jadi kalau terjadi kalau

play14:37

kita menggunakan bahasa C atau bahasa

play14:39

PHP kita tinggal memanggil

play14:44

Hai fungsinya saja Jadi kalau error ya

play14:47

kita bisa lihat atau kita bisa perbaiki

play14:49

yang ada di dalam fungsinya

play14:51

sehingga dengan Opi dimudahkan untuk

play14:54

membuat dan membaca kode yang dibuat

play14:57

atau bahasa sederhananya adalah

play15:00

efisiensi kode

play15:02

nah yang keempat Kenapa kita membutuhkan

play15:05

op yaitu konsep Oop juga memudahkan

play15:10

untuk menganalisa program yang akan

play15:13

dibuat akan terasa kalau kita membuat

play15:16

program besar yang kompleks ya Jadi

play15:17

kalau jumlahnya besar Kompleks itu kalau

play15:21

pakai prosedural itu pusing ya seperti

play15:24

yang tadi disampaikan

play15:25

membutuhkan itu lihat relay dan kali

play15:28

yaitu rasanya seperti itu tapi dengan op

play15:30

kita mudah jadi semuanya objek itu akan

play15:32

dijadikan sebagai sebuah kelas-kelas ya

play15:35

masing-masing kelas itu melakukan apa

play15:37

nanti mungkin lebih detailnya kita akan

play15:38

bahas apa itu objek apa itu kelas dan

play15:41

seterusnya

play15:42

Hai berikutnya perbedaannya the

play15:45

difference of procedural enop perbedaan

play15:48

dari bahasa pemrograman atau bahasa

play15:51

prosedural dengan pemrograman

play15:53

berorientasi objek yang perbedaannya

play15:56

kita lihat bahwa prosedural yang

play15:59

pemrograman prosedural ini adalah

play16:01

serangkaian tugas diselesaikan dalam

play16:03

bentuk fungsi atau prosedur Jadi pada

play16:06

dasarnya

play16:07

pemrograman prosedural ini tugas yaitu

play16:11

penyelesaiannya adalah bentuknya nanti

play16:13

adalah fungsi atau prosedur Jadi kalau

play16:16

enggak fungsi prosedur cara pandangnya

play16:18

bagaimana untuk prosedural cara

play16:20

pandangnya adalah program itu adalah

play16:23

suatu urutan instruksi

play16:26

ya jadi dia menganggap bahwa program itu

play16:30

adalah urutan instruksi

play16:33

Hai kemudian

play16:35

perbedaannya ya kalau di prosedural itu

play16:38

adanya pemecahan program utama menjadi

play16:41

mobil-mobil kecil jadi ada program utama

play16:44

kemudian dipecah menjadi modul-modul

play16:47

kecil kemudian pemegang configural

play16:51

fungsi dan prosedur menjadi pop ama Ayah

play16:54

ini sama seperti atas bahwa ini yang

play16:57

menjadi fokusnya adalah di fungsi dan

play16:59

prosedur

play17:00

kemudian fungsi dan prosedur digunakan

play17:04

untuk memanipulasi data memanipulasi itu

play17:07

yang mengubah mengubah data Jadi kita

play17:09

menggunakan fungsi dan prosedur nah

play17:12

berikutnya computron persebaran itu

play17:14

datanya bersifat pasif ya pasif ini

play17:19

adalah

play17:21

ciri dari pemrograman prosedural nah

play17:25

Bedanya apa dengan op

play17:27

yang pertama op itu fungsi dan data

play17:30

bukan menjadi dua hal yang terpisah

play17:33

Oh ya Jadi ini fungsi ini saya kasih

play17:36

tanda menyerah ini bukan merupakan hal

play17:38

yang terpisah kemudian fungsi dan data

play17:41

menjadi satu kesatuan yang disebut

play17:43

sebagai objek aktif ya perbedaannya

play17:46

kalau tadi pasif ini dia bersifat aktif

play17:50

dia Jadi dia menjadi satu kesatuan

play17:52

antara fungsi dan data lah yang paling

play17:55

penting cara pandangnya antara

play17:57

prosedural dengan op kalau up to cara

play18:00

pandangnya

play18:01

program adalah

play18:03

serangkaian objek yang bekerjasama

play18:07

menyelesaikan masalah Nah dari sini

play18:10

sudah terlihat perbedaannya dari cara

play18:13

pandang saja antara Persipura dan op itu

play18:15

sudah berbeda ya kalau Op ini program

play18:19

adalah objek yang bekerjasama untuk

play18:23

menyelesaikan masalah ini perbedaannya

play18:26

Nah kalau kita lihat dalam sebuah tabel

play18:28

perbedaan antara

play18:30

pemrograman prosedural dengan

play18:32

pemrograman berorientasi job Jack ini

play18:35

Intinya kalau prosedural itu fokus

play18:37

terhadap cara komputer menyelesaikan

play18:39

suatu tugas yang fokusnya disitu

play18:42

komputer bagaimana semuanya seakan satu

play18:44

tugas Tetapi kalau dop itu fokus

play18:47

terhadap objek yang sedang digunakan di

play18:51

objek-objek yang digunakan itu fokusnya

play18:53

di sana Ini yang membedakan antara

play18:57

pemrograman prosedural dengan

play18:59

pemrograman oke

play19:02

OK Google

play19:04

berikutnya definisinya apa dari

play19:07

object-oriented

play19:08

atau

play19:10

berorientasi objek definisinya adalah

play19:15

suatu paradigma atau cara pandang yang

play19:18

menggunakan objek sebagai identitas

play19:22

objek ini digunakan sebagai identitas

play19:25

yang membungkus properties

play19:28

dan operasi

play19:31

melewatkan pesan

play19:33

Hai dan inheritance pewarisan untuk

play19:37

menyelesaikan domain permasalahan

play19:39

ini parah di blognya cara pandangnya

play19:42

atau seperti itu jadi objek dengan

play19:45

identitas dibungkus ada properti ada

play19:47

operasi ya nanti akan kita bahas secara

play19:51

detail ya

play19:53

I hope properti siapa operasinya

play19:59

Hai lah kalau object-oriented systems

play20:01

Yao sistem itu adalah sebuah sistem yang

play20:05

dibangun berdasarkan metode berorientasi

play20:09

objek jadi sistemnya jadi sistem ini

play20:12

dibangun dengan metode berorientasi

play20:16

objek

play20:19

Hai lah kemudian punya atau alatnya yang

play20:23

digoyang bisa digunakan dalam

play20:25

pemrograman berorientasi objek itu ada

play20:28

Java dan nanti kita akan belajar dengan

play20:30

Java kemudian agak paytren ada PHP ya

play20:35

mereka sih es ya kemudian ada si

play20:37

plus-plus akan netdot agar ubi dan

play20:40

sbgnya akan hampir semua semua bahasa

play20:44

pemrograman sekarang sudah support

play20:46

dengan object oriented programming

play20:50

hai oke mungkin itu pengenalan ya

play20:53

pengenalan tentang konsep dasar dari

play20:56

pemrograman berorientasi objek yang

play20:58

paling penting segera paham dulu dengan

play21:00

konsepnya dan perbedaan dengan

play21:04

memprogram and procedural text seperti

play21:08

biasa kalau ada pertanyaan bisa

play21:09

ditanyakan di e-learning atau di grup WA

play21:12

Ataupun mungkin di kolom komentar saya

play21:15

akhiri Assalamualaikum warahmatullahi

play21:17

wabarakatuh

play21:22

[Musik]

play21:24

[Tepuk tangan]

Rate This
β˜…
β˜…
β˜…
β˜…
β˜…

5.0 / 5 (0 votes)

Related Tags
OOP ConceptsProcedural vs OOPProgramming ParadigmsCase StudyCode StructureSoftware DevelopmentObject OrientedModularityInheritanceJava ProgrammingPHP OOP