90 likes | 282 Views
( Python Training : https://www.edureka.co/python )<br>This Edureka Python Class tutorial (Python Tutorial Blog: https://goo.gl/wd28Zr) will help you understand Python Classes and Objects with examples. It will also explain the concept of Abstract Classes and Inheritance in python. <br><br>Check out our Python Training Playlist: https://goo.gl/Na1p9G<br><br>This Python Programming tutorial video helps you to learn following topics:<br><br>1. Python Classes and Objects<br>2. Inheritance<br>3. Abstract Classes
E N D
EDUREKA DEVOPS CERTIFICATION TRAINING Python Classes www.edureka.co/devops
Agenda 1 Classes and Objects 2 Classes in Python 3 Inheritance 4 Abstract Class EDUREKA DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Classes and Objects Sarah 37 10000 Object1 Employee Neel 43 21000 Objects Class Object2 Name Age Salary Jessica 26 24000 Object3 EDUREKA DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Classes in Python ❑ A class is the blueprint from which specific objects are created. Class Syntax: Instance Variable Class Variable Data Member A variable that is shared by all instances of a class. instance variable unique to each instance A class variable or instance variable that holds data associated with a class and its objects. EDUREKA DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Class Inheritance ❑ A class can inherit attributes and behavior methods from another class, called the superclass. ❑ A class which inherits from a superclass is called a subclass, also called heir class or child class. Vehicle Superclass Trucks cars Bikes Baseclass Baseclass Baseclass Medium Vans Pick-up Pedal Heavy Convertible Sports Motor Derivedclass Derivedclass EDUREKA DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Abstract Class ❑ Abstract Class cannot be instantiated. ❑ It can only be inherited. Object of Abstract Class Abstract Class Inherit Abstract Class Object of Class1 Class1 EDUREKA DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Session In A Minute Classes in Python Classes and Objects Inheritance Abstract Class EDUREKA DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Thank You EDUREKA DEVOPS CERTIFICATION TRAINING www.edureka.co/devops