Find jobs | Jobseekers
Employer login
About us Sitemap of www.CareerRide.com Sitemap FAQ related with www.CareerRide.com FAQ Click here to Contact us Contact
       
Submit Resume Free ! | Access Resume Free !
Home Career Services Resume Services Interview questions Articles Books
Content
C#.NET Part 1
C#.NET Part 2
C#.NET Part 3
C#.NET Part 4
C#.NET Part 5
 
NET framework
NET assembly
NET code security
NET access modifiers
NET architecture
NET base class library
NET CLR
NET constants,enum,arrays
NET data types
NET menu
NET garbage collection
NET debug and trace
NET properties
NET form
NET assemblies & resources
NET class & structures
NET binding,viewing,filtering
NET configuring & optimizing
NET configuring setup project
NET constructors & destructors
NET control
NET dataset objects
NET debugging tools
NET debug & trace classes
NET delegates & events
NET exception handling
NET globalization-localization
NET interoperability
NET project deployment
NET securing application
NET using XML
NET validating user input
NET windows communication
NET windows presentation
NET windows workflow
 
ASP.NET
ADO.NET
NET Remoting
VB.NET
AJAX
 
PHP
 
C
C++
Java
Data Structure
Oops
 
Database concepts
SQL Server
Oracle
MySQL
Data warehousing
Service-oriented architecture
SQL Server notification services
SQL Server Reporting Services
Sharepoint
Biztalk interview questions
 
Operating System
Project Management
Linux
Testing
Networking
Software engineering
 
UML
XML
HTML
SOAP
CSS
VBScript
 
CV tips
Cover letter tips
Interview tips
Human resources
Soft skills
Group discussion

Csharp

By Nishant Kumar

C#.Net Interview Questions and their answer part 3.     

Part 1 | Part 2 | Part 3 | Part 4 | part 5
How to prevent your class from being inherited?   |  List down difference between overriding and overloading.   |  What does the keyword virtual mean in the method definition?   |  How to allow class to be inherited, but prevent the method from being over-ridden?   |  When do we declare a class as abstract in C#.NET?   |  Define Interface class in C#.NET.

Question - How to prevent your class from being inherited?
Answer -
You can use keyword 'sealed' in the class definition to prevent class from being inherited.

Question - List down difference between overriding and overloading.
Answer - When overriding, you change the method behavior for a derived class.
Overloading simply involves having a method with the same name within the class.

Question - What does the keyword virtual mean in the method definition?

Answer - The method can be over-ridden.

 

Question - How to allow class to be inherited, but prevent the method from being over-ridden?

Answer - You can do so by declaring the class public and making the method sealed.

 

Question - When do we declare a class as abstract in C#.NET?

Answer - When at least one of the methods in the class is abstract.

 

Question - Define Interface class in C#.NET. 

Answer - It is an abstract class with public abstract methods with no implimentation.

 

Part 1 | Part 2 | Part 3 | Part 4 | part 5

 

ASP.NET Caching Interview questions with answers

Define Caching in ASP.NET | Advantages of Caching | What are the types of Caching in ASP.NET? | Explain in brief each kind of caching in ASP.NET.

ASP.NET Globalization-Localization questions with answers

What is Globalization and Localization in ASP.NET? | What are the Globalization approaches possible in ASP.NET? | Implementing ASP.NET Globalization | Define Resource Files and Satellite Assemblies

ASP.NET Session State Management questions with answers

Define Session, SessionId and Session State in ASP.NET. | What is Session Identifier? | Advantages and disadvantages of using Session State Management. | What are the Session State Modes? | Define each Session State mode supported by ASP.NET.


Today's Hot Jobs
C++  SQL Server
.NET  Java  Oracle
Finance  Marketing
Seekers  Employers
Copyright © 2008 CareerRide.com. All rights reserved.