diff --git a/Home.md b/Home.md index be1cc3d..75996a9 100644 --- a/Home.md +++ b/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. \ No newline at end of file