Showing posts with label python in Bopal-Ahmedabad. Show all posts
Showing posts with label python in Bopal-Ahmedabad. Show all posts

Friday, November 30, 2018

Encapsulation in Python-tccicomputercoaching.com

In an object oriented python program, you can restrict access to methods and variables. This can prevent the data from being modified by accident and is known as encapsulation. Let’s start with an example.



The private attributes and methods are not really hidden, they’re renamed adding “_Car” in the beginning of their name.
 
Class with private variables. Variables can be private which can be useful on many occasions. A private variable can only be changed within a class method and not outside of the class.

class Car:
def __init__(self):
self.__updateSoftware()
def drive(self):
print 'driving'
def __updateSoftware(self):
print 'updating software'
redcar = Car()
redcar.drive()
#redcar.__updateSoftware() not accesible from object.

This program will output:

updating software
driving

To learn Encapsulation in Python at TCCI .

Call us @ 98256 18292

For more information about programming Language , Computer course , Engineering course

Visit us @ http://tccicomputercoaching.com/course/

Friday, June 9, 2017

Python Batch Coming Soon at TCCI Tccicomputercoaching.com



Python Batch Coming Soon at TCCI

Tccicomputercoaching.com


Python is awesome for prototyping things or making scripts with few lines of code.
Python is great open source, interpreted, object oriented programming language. 
Python is one of the few languages that are not native to the Java world and yet can be used to develop apps easily for the android platform.
Python language is more expressive because of its List, Directories,
It’s very powerful language because of its rich libraries which contains built-in functions. 
TCCI-Tririd Computer Coaching Institute is Best Computer Coaching Institute in Bopal and Satellite in Ahmedabad. Which provides computer training in different programming languages through different media/learning method.
“Student Success is our achievement.”
Python Batch is started at TCCI soon, you can join a popular and in demand Programming Language through Qualified and Experienced Faculty.
Registration is open………………
Hurry up………..
Call us @ 98256 18292.
Visit us @ tccicomputercoaching.com