module hotel.employee; import std.stdio; class staff { public: string FullName; void printName() { writeln("Hotel Employee Name: ",FullName); } } void main() { staff m1= new staff(); m1.FullName= "Daniel Jones"; m1.printName(); }
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more