GK SCIENTIST

General Knowledge One Stop Source
Menu
  • Home
  • Social Science
    • History
    • Political Science
    • Geography
  • Science
    • Physics
    • Chemistry
    • Biology
  • Chemistry Notes
  • Mathematics
  • Computer
  • Tutorial MySQL
  • Tutorial Python
  • Java Tutorial
  • English Grammar
  • English Essay
  • Indian Anthropology
  • Philosophy
  • Solved Paper
  • UPSC
  • Current Content
    • Current Affairs
    • RSTV News
    • Yojana and Kurukshetra Gist
  • Donate
  • Contact Us

If you are interested in advertising to our audience, submit the advertising enquiry form.

Advertising Enquiry
Computer

Encapsulation in Python

Gk Scientist December 5, 2022 No Comments
Tweet WhatsApp Telegram

Encapsulation in Python:

We can use the PyCharm code editor for this example. If you do not know about it then follow this link- How to install PyCharm for Python and create a program in it.

(1) Encapsulation refers to hiding the internal class data. As a rule of thumb, in object-oriented programming, class data should not be directly accessible outside the class.

(2) Getters- These are methods used to access the private attributes from a class or its instance. Setters- These are methods used to set the private attributes of a class or its instance. Getters and Setters methods can also be used to implement additional logic for accessing or setting the attributes, and it is convenient to maintain such additional logic in one place.

getter and setter method in python - Encapsulation in Python

Tutorial MySQL
Tutorial Python
Object-Oriented Programming (OOP)
Procedure-Oriented Programming

Email (Electronic Mail)
Database Models or Data Models

Information Security in E-Commerce

Python (programming language)– Wikipedia
Prev Article
Next Article

Related Articles

Structured Programming- Advantages and Disadvantages
Structured Programming: In structured programming design, programs are broken into …
Gk Scientist August 9, 2022 Computer

Structured Programming- Advantages and Disadvantages

Information and Communication Technology (ICT)
Information and Communication Technology: It may be defined as the …
Gk Scientist October 25, 2022 Computer

Information and Communication Technology (ICT)

FTP (File Transfer Protocol)
FTP: FTP is an acronym for File Transfer Protocol. FTP …
Gk Scientist September 17, 2022 Computer

FTP (File Transfer Protocol)

Database Models or Data Models
Data Models: The database model, commonly known as the data …
Gk Scientist October 16, 2022 Computer

Database Models or Data Models

MySQL Aggregate Functions
MySQL Aggregate Functions: MySQL has many built-in functions that you …
Gk Scientist November 15, 2022 Computer

MySQL Aggregate Functions

Procedure-Oriented Programming
Procedure-Oriented Programming: Procedure-Oriented Programming is the traditional way of programming, …
Gk Scientist August 14, 2022 Computer

Procedure-Oriented Programming

Implement Queue in Python
Queue in Python: We can use the PyCharm code editor …
Gk Scientist November 29, 2022 Computer

Implement Queue in Python

List Iteration in Python
List Iteration in Python: We can use the PyCharm code …
Gk Scientist November 27, 2022 Computer

List Iteration in Python

Leave a Reply Cancel Reply

Search




  • Popular
  • Recent




GK SCIENTIST

General Knowledge One Stop Source

Information

  • About Us
  • Terms and Condition, Disclaimer
  • Contact Us

Android Apps

  • IAS App For English Medium Students
  • IAS Basics App For English Medium Students
  • IAS Hindi App For Hindi Medium Students
DMCA.com Protection Status

Popular Tags

Biology (33) Biology Questions (88) Chemistry (57) Computer (213) Current Affairs (4) Current Content (0) Economy (10) English Essay (172) English Grammar (75) English Literature (10) Geography (83) History (259) Indian Anthropology (11) Indian Polity (14) JKAS Mains Question Papers (17) Mathematics (68) Moral Science (7) NCERT & Other Boards Books (25) Philosophy (114) Physics (89) Political Science (132) RS TV News (33) Science (553) Social Anthropology (7) Social Science (17) Solved Paper (47) UPSC (7) UPSC Mains Question Papers (26)

Downloads

  • NCERT Books
  • Old NCERT Books
  • NIOS Books For IAS, SSC, and State PSC Exam
  • Tamil Nadu Board Books: Important For UPSC, SSC, and State PSC Exam
  • Modern Indian and World History Notes For IAS Exam
  • UPSC Topper 2013 Gaurav Agrawal Notes For IAS Preparation
  • UPSC IAS Prelims General Studies – Previous Year Papers
  • UPSC Mains Question Papers

Copyright © 2023 GK SCIENTIST
Theme by MyThemeShop.com& Hosted On Cloudways

Ad Blocker Detected

Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker.

Refresh
 

Loading Comments...