Home | | Computer Science 12th Std | Creating Objects

Python - Creating Objects | 12th Computer Science : Chapter 10 : Python Modularity and OOPS : Python Classes and Objects

Chapter: 12th Computer Science : Chapter 10 : Python Modularity and OOPS : Python Classes and Objects

Creating Objects

Once a class is created, next you should create an object or instance of that class.

Creating Objects

Once a class is created, next you should create an object or instance of that class. The process of creating object is called as “Class Instantiation”.

Syntax:

Object_name = class_name( )

Note that the class instantiation uses function notation ie. class_name with

 

Tags : Python , 12th Computer Science : Chapter 10 : Python Modularity and OOPS : Python Classes and Objects
Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail
12th Computer Science : Chapter 10 : Python Modularity and OOPS : Python Classes and Objects : Creating Objects | Python


Privacy Policy, Terms and Conditions, DMCA Policy and Compliant

Copyright © 2018-2024 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.