5.1 Intro to OOP
Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *
Already have an account? Sign In »
4 hours 19 minutes
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
is gonna nicely lead us into module 678 and nine,
which will all cover the key components of object oriented programming.
Now the goal of this video is to understand what old P is
and then go over the key components of old P
as well as discussed some of its advantages and why you should consider using the object oriented programming approach
now to begin. What is Opie?
So to understand this concept, let's first start with a formal sort of definition.
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.
Now there's a lot that's being sent here in this definition, but we have certainly used
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,
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,
moving on. We have inheritance. We've already seen some of that.
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
is Thea bility of an object to take on different forms.
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
code, security through data hiding and implementation, hiding
less state of redundancy through the use of inheritance. And then finally, simplified troubleshooting.
Okay, So, to sum up what we discussed in this via lecture we went over Theo idea of Opie and what it actually is.
Then we discussed the key components, the four key components, the object oriented programming.
And then finally, we went over some of the advantages that Old P brings with it and encourages.
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.
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.