Created
November 18, 2019 10:58
-
-
Save Mayankgupta688/9ca99460199cbfc26db082c15e9115c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Manager struct { | |
Name string | |
Age int | |
Designation string | |
Salary int | |
} | |
func (mgr Manager) GetDetails() string { | |
return mgr.Name + " " + mgr.Age; | |
} | |
func (mgr Manager) GetEmployeeSalary int { | |
return mgr.Salary | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment