TCCI-Tririd Computer Coaching Institute is focused on providing Quality education with practical sessions.Satisfaction of our student is our priority. We pride ourselves for providing proficient IT solutions. We have a highly qualificated and expereinced faculties, who, not only handle teaching, but also aspire to provide the best possible solution through their technical expertise.
Showing posts with label python in Ahmedabad. Show all posts
Showing posts with label python in Ahmedabad. Show all posts
Tuesday, December 11, 2018
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:
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/
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 |
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
To know
more about python in Ahmedabad,
python in Bopal-Ahmedabad,
python in satellite-Ahmedabad,
Computer class in bopal-ahmedabad
Subscribe to:
Posts (Atom)
