Join Dotnetcodes is online Discussion Forum for Software professionals . It lets you find friends around the world and Create professional network that share similar interests as you. Get help on ur projects by industry specialists. Also get answers to all ur technical/placement related querries.Get an edge over others.
Already MemberClick here to login MVC Interview Questions Answers Interview Questions
Get Started Developing for Android Apps with Eclipse Articles
.Net framework 4.0 Interview Questions Answers Interview Questions
Whats New in ASP.NET 4.0 Part 2 Articles
SQL server reporting services Interview Questions (SSRS) part 1 Articles
Serial Number in SSRS Articles
How to Print a Crystal Report direct to printer Articles
SharePoint 2010 interview Questions Answers Interview Questions
Html5 interview questions and answers Interview Questions
Explaining SDLC -System Development Life Cycle Articles
Difference between Encapsulation and Abstraction Interview Questions
Populate or bind Dropdownlist in using Jquery and Json Articles
Infosys Interview Questions Interview Questions
ASP.NET MVC Overview Interview Questions
Sql Server Database Backup and Restore through C# Source Codes
Submit Articles | More Articles..

What is the syntax to inherit from a class in C#

Posted By: mitu678 On:12/22/2012 4:15:59 AM in:Interview Questions Category:OOPS Hits:981
When a class is derived from another class, then the members of the base class become the members of the derived class.

When a class is derived from another class, then the members of the base class become the members of the derived class. The access modifier used while accessing members of the base class specifies the access status of the base class members inside the derived class.

The syntax to inherit a class from another class in C# is as follows: 
class MyNewClass : MyBaseclass

comments powered by Disqus
User Profile
Mitu Sinha
Freelancer Software Consultant
Delhi , India
Email :You must Log In to access the contact details.
Latest Post from :mitu678
What is Extensible Output Caching improvement in ASP.NET 4.0?
View: 848 | Submitted on: 1/11/2013 6:18:27 AM
What is Razor View Engine
View: 973 | Submitted on: 12/31/2012 6:10:02 AM
Which are the advantages of using MVC Framework
View: 877 | Submitted on: 12/31/2012 6:03:26 AM
What are ways to create input forms for workflow ?
View: 707 | Submitted on: 12/27/2012 1:54:33 AM
What are the types of input forms that can be created for a workflow
View: 605 | Submitted on: 12/27/2012 1:46:30 AM
Submit Articles | All Post of This User..

All rights reserved to dotnetcodes. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks.
Best viewed at 1024 x 768 resolution with Internet Explorer 5.0 or Mozila Firefox 3.5 or Google Crome and higher