mirror of
https://github.com/sam-astro/Z-Sharp.git
synced 2025-12-10 15:52:12 +00:00
Updated Home (markdown)
parent
a06d85617f
commit
88f5c2511b
4
Home.md
4
Home.md
@ -42,8 +42,7 @@ output addNumbers(2, 3);`
|
||||
### Object-Oriented Programming (OOP)
|
||||
Z# supports object-oriented programming (OOP) with classes and objects. Here is an example of a class in Z#:
|
||||
|
||||
***
|
||||
|
||||
```zsharp
|
||||
class Person {
|
||||
constructor(name, age) {
|
||||
this.name = name;
|
||||
@ -57,5 +56,6 @@ class Person {
|
||||
|
||||
var person = new Person("Alice", 30);
|
||||
person.greet(); // Output: "Hello, my name is Alice and I am 30 years old."
|
||||
```
|
||||
## Conclusion
|
||||
Z# is a simple and easy-to-learn programming language that can be a great option for beginner programmers. Its high-level syntax and dynamic typing make it easy to get started with, while its support for object-oriented programming and garbage collection provide more advanced features for more experienced programmers.
|
||||
Loading…
x
Reference in New Issue
Block a user