C# Class OOP_Inheritance.ConstructorsClass

By default every class have a parameter less constructor which is removed/unimplemented automatically if user write a constructor. Constructor use to initialize values of members 1. parameter less constructor write some default values in members and constructor with parameter update the values with the values recieved in parameter.
Datei anzeigen Open project: fahidnasir/DotNet-ShortCourse2015 Class Usage Examples

Public Methods

Method Description
ConstructorsClass ( ) : System
ConstructorsClass ( Random userGivenRandomObject ) : System
ConstructorsClass ( Random userGivenRandomObject, string userGivenText ) : System
ConstructorsClass ( string userGivenText ) : System
ConstructorsClass ( string userGivenText, Random userGivenRandomObject ) : System

Method Details

ConstructorsClass() public method

public ConstructorsClass ( ) : System
return System

ConstructorsClass() public method

public ConstructorsClass ( Random userGivenRandomObject ) : System
userGivenRandomObject System.Random
return System

ConstructorsClass() public method

public ConstructorsClass ( Random userGivenRandomObject, string userGivenText ) : System
userGivenRandomObject System.Random
userGivenText string
return System

ConstructorsClass() public method

public ConstructorsClass ( string userGivenText ) : System
userGivenText string
return System

ConstructorsClass() public method

public ConstructorsClass ( string userGivenText, Random userGivenRandomObject ) : System
userGivenText string
userGivenRandomObject System.Random
return System