Updated Home (markdown)

Gammer0909 2023-11-25 19:41:54 -06:00
parent a06d85617f
commit 88f5c2511b

@ -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.