Skip to content

Commit 70435bc

Browse files
committed
Adding concrete object
1 parent 1b10e76 commit 70435bc

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
namespace DesignPattern.Proxy;
2+
3+
public class ConcreteObject(string user) : RealObject
4+
{
5+
private readonly string _user = user;
6+
7+
public override string GetText()
8+
{
9+
return $"This text is from the concrete class for registered users {_user}";
10+
}
11+
}

0 commit comments

Comments
 (0)