Skip to main content
Just to be in line with the class mentioned in the question; edited body
Source Link

The difference is, that in your first code snippet you're calling the parameterless base class constructor, whereas in your second code snippet you're calling the base class constructor with a parameter.

Your base class might be defined as follows:

class qwe{ public qwe(){ /* Some code */ } public qwe(AnotherClassSomeAnotherclass ac){ /* Some other code */ } } 

The default constructor for your abc class looks exactly like the following:

class abc{ public abc() : base() {} } 

The difference is, that in your first code snippet you're calling the parameterless base class constructor, whereas in your second code snippet you're calling the base class constructor with a parameter.

Your base class might be defined as follows:

class qwe{ public qwe(){ /* Some code */ } public qwe(AnotherClass ac){ /* Some other code */ } } 

The default constructor for your abc class looks exactly like the following:

class abc{ public abc() : base() {} } 

The difference is, that in your first code snippet you're calling the parameterless base class constructor, whereas in your second code snippet you're calling the base class constructor with a parameter.

Your base class might be defined as follows:

class qwe{ public qwe(){ /* Some code */ } public qwe(SomeAnotherclass ac){ /* Some other code */ } } 

The default constructor for your abc class looks exactly like the following:

class abc{ public abc() : base() {} } 
added 2 characters in body
Source Link

The difference is, that in your first code snippet youryou're calling the parameterless base class constructor, whereas in your second code snippet you're calling the base class constructor with a parameter.

Your base class might be defined as follows:

class qwe{ public qwe(){ /* Some code */ } public qwe(AnotherClass ac){ /* Some other code */ } } 

The default constructor for your abc class looks exactly like the following:

class abc{ public abc() : base() {} } 

The difference is, that in your first code snippet your calling the parameterless base class constructor, whereas in your second code snippet you're calling the base class constructor with a parameter.

Your base class might be defined as follows:

class qwe{ public qwe(){ /* Some code */ } public qwe(AnotherClass ac){ /* Some other code */ } } 

The default constructor for your abc class looks exactly like the following:

class abc{ public abc() : base() {} } 

The difference is, that in your first code snippet you're calling the parameterless base class constructor, whereas in your second code snippet you're calling the base class constructor with a parameter.

Your base class might be defined as follows:

class qwe{ public qwe(){ /* Some code */ } public qwe(AnotherClass ac){ /* Some other code */ } } 

The default constructor for your abc class looks exactly like the following:

class abc{ public abc() : base() {} } 
added 143 characters in body
Source Link

The difference is, that in your first code snippet your calling the parameterless base class constructor, whereas in your second code snippet you're calling the base class constructor with a parameter.

Your base class might be defined as follows:

class qwe{ public qwe(){ /* Some code */ } public qwe(AnotherClass ac){ /* Some other code */ } } 

The default constructor for your abc class looks exactly like the following:

class abc{ public abc() : base() {} } 

The difference is, that in your first code snippet your calling the parameterless base class constructor, whereas in your second code snippet you're calling the base class constructor with a parameter.

Your base class might be defined as follows:

class qwe{ public qwe(){ /* Some code */ } public qwe(AnotherClass ac){ /* Some other code */ } } 

The difference is, that in your first code snippet your calling the parameterless base class constructor, whereas in your second code snippet you're calling the base class constructor with a parameter.

Your base class might be defined as follows:

class qwe{ public qwe(){ /* Some code */ } public qwe(AnotherClass ac){ /* Some other code */ } } 

The default constructor for your abc class looks exactly like the following:

class abc{ public abc() : base() {} } 
Fixed formatting
Source Link
Daniel Earwicker
  • 117k
  • 38
  • 209
  • 289
Loading
added 48 characters in body; added 8 characters in body
Source Link
Loading
Source Link
Loading