public string GetMessage() => _foo.GetFoo() + _bar.GetBar();
public string GetMessage() { return(_foo.GetFoo() + _bar.GetBar()); }
public Class2(IBar bar) { Console.WriteLine(bar.GetBar()); }