C FAQ's Questions
JAVA FAQ's Questions
PHP FAQ's Questions
.Net FAQ's Questions
HTML FAQ's Questions
What are the difference between Structure and Class?
Structures are value type and Classes are reference type
Structures can not have contractors or destructors.
Classes can have both contractors and destructors.
Structures do not support Inheritance, while Classes support Inheritance.
What is difference between Class And Interface?
Class : is logical representation of object. It is collection of data and related sub procedures with defination.
Interface : is also a class containg methods which is not having any definations.Class does not support multiple inheritance. But interface can support.
What is Delegates?
Delegates are a type-safe, object-oriented implementation of function pointers and are used in many situations where a component needs to call back to the component that is using it.
What is Authentication and Authorization?
Authentication is the process of identifying users. Authentication is identifying/validating the user against the credentials (username and password).
Authorization performs after authentication. Authorization is the process of granting access to those users based on identity. Authorization allowing access of specific resource to user.
What is a base class?
A class declaration may specify a base class by following the class name with a colon and the name of the base class. omitting a base class specification is the same as deriving from type object.
Can "this" be used within a static method?
No 'This' cannot be used in a static method. As only static variables/methods can be used in a static method.
What is difference between constants, readonly and, static ?
Constants: The value can't be changed.
Read-only: The value will be initialized only once from the constructor of the class.
Static: Value can be initialized once.
What are the different types of statements supported in C#?
C# supports several different kinds of statements are
Try catch statements
Checked and unchecked
What is an interface class?
It is an abstract class with public abstract methods all of which must be implemented in the inherited classes.
what are value types and reference types?
Value types are stored in the Stack.
Examples : bool, byte, chat, decimal, double, enum , float, int, long, sbyte, short, strut, uint, ulong, ushort.
Reference types are stored in the Heap.
Examples : class, delegate, interface, object, string.