From ddcdddf788291aced3979851841c0befa4b13f99 Mon Sep 17 00:00:00 2001 From: Muhammad Uzair <34101864+uzair004@users.noreply.github.com> Date: Sat, 17 Aug 2024 01:15:18 +0500 Subject: [PATCH] Update README.md: bug fix --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a4de1ec..8a27768 100644 --- a/README.md +++ b/README.md @@ -1418,7 +1418,7 @@ Here are two more advanced examples, we can use an `interface` to define the sub } const myPerson = new Person('Robert', 'Molina'); - greet(myPerson); // Prints: "Hi, I am Robert Moina" + myPerson.greet('Molina'); // Prints: "Hi, I am Robert Moina" ``` > Interfaces describe the **`public` side of the class**, rather than both the `public` and `private` side. This prohibits you from using them to check that a class also has particular types for the private side of the class instance.