How to call base class constructor in c#.net ?

This item was filled under [ Interview Questions ]

example:

class one

{

one()

{

}

}

//This is Inheritance of base class.

class two:one

{

//this is the way to calling base class constructor

two:one()

{

}

}

By Inheriting the base class we can reuse the functionality of  base class in to sub class

here one is base class two is sub class.

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Comment

You must be logged in to post a comment.