Update page 'P# 1.0 Draft Specification'
@@ -449,7 +449,7 @@ There are three widely used programming paradigms there: procedural programming,
|
|||||||
* Encapsulation
|
* Encapsulation
|
||||||
* Inheritance
|
* Inheritance
|
||||||
|
|
||||||
### 11.1. Objects in P#
|
### 11.1. Objects in P\#
|
||||||
Objects are basic building blocks of a P# script. An object is a combination of data and methods. In a OOP program, we create objects. These objects communicate together through methods. Each object can receive messages, send messages, and process data. There are two steps in creating an object. First, a class needs to be defined. A class is a template for an object. It is a blueprint which describes the state and behavior that the objects of the class all share. A class can be used to create many objects. Objects created at runtime from a class are called instances of that particular class.
|
Objects are basic building blocks of a P# script. An object is a combination of data and methods. In a OOP program, we create objects. These objects communicate together through methods. Each object can receive messages, send messages, and process data. There are two steps in creating an object. First, a class needs to be defined. A class is a template for an object. It is a blueprint which describes the state and behavior that the objects of the class all share. A class can be used to create many objects. Objects created at runtime from a class are called instances of that particular class.
|
||||||
|
|
||||||
<%
|
<%
|
||||||
|
|||||||
Reference in New Issue
Block a user