5.1 Intro to OOP
Video Activity
Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *
or
Already have an account? Sign In »

Video Transcription
00:00
hi and welcome back to the course. I hope you guys are doing well. And if you remember in the last video lecture, we wrapped up the module on methods in Java. And in this video lecture, we're gonna be starting to dive into what is known as old P or object oriented programming. And this introductory video toe, Opie
00:19
is gonna nicely lead us into module 678 and nine,
00:23
which will all cover the key components of object oriented programming.
00:29
Now the goal of this video is to understand what old P is
00:34
and then go over the key components of old P
00:38
as well as discussed some of its advantages and why you should consider using the object oriented programming approach
00:47
now to begin. What is Opie?
00:50
So to understand this concept, let's first start with a formal sort of definition.
00:56
Object oriented programming, or Old P is a software programming model constructed around objects. This model compartmentalizes data in tow, objects data fields and describes object contents and behavior through the declaration and use of classes.
01:12
Now there's a lot that's being sent here in this definition, but we have certainly used
01:21
objects before in our previous videos, but it just wasn't, um obviously said, but we have used them here and there, and now we're actually gonna really get into it. So if we look at the core components of Opie,
01:34
object oriented programming encourages four types of concepts. The 1st 1 is three idea of in cops elation, which is also referred as data hiding. Then you have something called abstraction, which is referred as referred to as implementation, hiding,
01:53
moving on. We have inheritance. We've already seen some of that.
01:57
You know previously, electors inheritance is where classes can be derived from other classes. Please ignore this so weird, P over here and then polymorphism
02:07
is Thea bility of an object to take on different forms.
02:12
All right, so if we move on to discussing the advantages of o. P, here are some of the advantages that object or into programming or p o. P. Brings with it. So first, it encourages the reusability of code through inheritance
02:27
code, security through data hiding and implementation, hiding
02:31
less state of redundancy through the use of inheritance. And then finally, simplified troubleshooting.
02:39
Okay, So, to sum up what we discussed in this via lecture we went over Theo idea of Opie and what it actually is.
02:47
Then we discussed the key components, the four key components, the object oriented programming.
02:53
And then finally, we went over some of the advantages that Old P brings with it and encourages.
03:00
Now, in the next module, we're going to be starting to explore the first concept of or key component of O. P, called encapsulation.
03:10
Now is always if you have any questions at all, feel free to call on connect with me through Lincoln or contact me through Lincoln and I would be more than happy tenants or any of your questions. Thank you very much for watching, and I look forward to seeing you in the next module.
Up Next
Similar Content