• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Start selling Create your account
Document preview thumbnail
Preview 1 out of 4 pages
Summary

Summary python opps note

Document preview thumbnail
Preview 1 out of 4 pages

Summary of 4 pages for the course Data Science & online sales at Data Science & online sales (python opps note)

Content preview

Python OOPS
OOPs is a way of organizing code that uses objects and classes to represent
real-world entities and their behavior. In OOPs, object has attributes thing that
has specific data and can perform certain actions using methods.



OOPs Concepts in Python
 Class in Python
 Objects in Python
 Polymorphism in Python
 Encapsulation in Python
 Inheritance in Python
 Data Abstraction in Python



Python Class
A class is a collection of objects. Classes are blueprints for creating objects. A
class defines a set of attributes and methods that the created objects
(instances) can have.

Some points on Python class:
 Classes are created by keyword class.
 Attributes are the variables that belong to a class.
 Attributes are always public and can be accessed using the dot (.) operator.
Example: Myclass.Myattribute


Python Objects
An Object is an instance of a Class. It represents a specific implementation of
the class and holds its own data.
An object consists of:

 State: It is represented by the attributes and reflects the properties of an
object.
 Behavior: It is represented by the methods of an object and reflects the
response of an object to other objects.
 Identity: It gives a unique name to an object and enables one object to
interact with other objects.

Document information

Uploaded on
October 27, 2026
Number of pages
4
Written in
2026/2027
Type
Summary
£7.66

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
0
Followers
0
Items
4
Last sold
-



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions