From the course: CompTIA PenTest (PT0-002) Cert Prep

Unlock this course with a free trial

Join today to access over 23,200 courses taught by industry experts.

Classes

Classes

- Next in our discussion of more advanced programming topics, we want to talk about a huge topic called object oriented programming. Now, clearly we cannot cover object oriented programming in its entirety in one short clip, but I just want to give you a little taste of what OO means and what a class is. You're going to run into that keyword over and over, especially in Python programs, and it's helpful just to have a general idea of what OO means, why is it used, and what the heck is a class? Alright, so let's go look at some resources and a little bit of code to try to unravel classes. So we're going to go to geeksforgeeks.org and look at their description of Python classes and objects. Now, a class is defined as being a user defined blueprint or a prototype from which objects are created. So that's the overarching definition of what a class actually is, but what does it really mean? Well, if you think of a class as being a template and you create things from the class you can think…

Contents