c class constructor get c# class constructor get set You could use the following. Constructors have the same name as the class or struct and they usually initialize the data members … Friday, June 24, 2022 Edit