Saturday, February 28, 2009

Vikasswarup(Biography)-Author Of Slumdog Millionaire



Vikas Swarup was born in Allahabad (India) in a family of lawyers.
After his schooling, Vikas attended Allahabad University and studied History, Psychology and Philosophy. He also made his mark as a champion debater, winning National level competitions. After graduating with distinction, he joined the Indian Foreign Service in 1986, motivated by an interest in international relations and a desire to explore different cultures.
In his diplomatic career, Vikas has been posted to various countries such as Turkey (1987-1990), the United States (1993-1997) Ethiopia (1997-2000) and the United Kingdom (2000-2003). Since August 2006 he has been posted in Pretoria as India’s Deputy High Commissioner.
Q&A is his first novel. Published by Doubleday/Random House (UK & Commonwealth), Harper Collins (Canada) and Scribner (US) it has sold translation rights in 40 languages including French, German, Italian, Spanish, Portuguese, Dutch, Danish, Swedish, Finnish, Norwegian, Hindi, Marathi, Gujarati, Punjabi, Tamil, Czech, Slovak, Slovenian, Bulgarian, Romanian, Polish, Russian, Japanese, Korean, Turkish, Taiwanese, Thai, and Hebrew. It was short listed for the Best First Book by the Commonwealth Writer’s Prize and won South Africa’s Exclusive Books Boeke Prize 2006 as well as the Paris Book Fair's Reader's Prize, the Prix Grand Public, in 2007. It was voted the Most Influential Book of 2008 in Taiwan.
Harper Collins brought out the audio book, read by Kerry Shale, which won the award for Best Audio Book of the Year 2005. The BBC produced a radio play based on the book which won the Gold Award for Best Drama at the Sony Radio Academy Awards 2008 and the IVCA Clarion Award 2008. The film version of Q&A, titled ‘Slumdog Millionaire’, directed by Danny Boyle, has taken the world by storm and has won more than 70 awards including four Golden Globes, 11 BAFTA nominations and a staggering 10 Oscar nominations.
Vikas's second novel Six Suspects was published by Transworld in August 2008. It is being translated into several languages and has been optioned for a film by Starfield Productions and the BBC. Radio 4 has commissioned a radio play based on the novel.
Vikas's short story ‘A Great Event’ has been published in ‘The Children’s Hours: Stories of Childhood’, a bold and moving anthology of stories about childhood to support Save the Children and raise awareness for its fight to end violence against children.
Vikas has participated in the Oxford Literary Festival, the Turin International Book Fair, the Auckland Writers’ Conference, the Sydney Writers’ Festival, the Kitab Festival in New Delhi, the St. Malo International Book & Film Festival in France, the 'Words on Water' Literary Festival at the University of the Witwatersrand in Johannesburg and the Jaipur Literature Festival.
Apart from reading, Vikas enjoys listening to music and playing cricket, tennis and table tennis.
His wife Aparna is an artist who has held exhibitions in India and abroad. They have two sons Aditya and Varun.
Lifted From : www.vikasswarup.net

A Programmer`s Introduction to C#


Download Here 1
Download Here 2

Do U Miss Ur Love!

Have u ever missed someone and felt terrible because u think that he/she doesn't miss u? Missing someone is a terrible but at the same time,sweet feeling. U will be sitting around wondering if u meant anything to him/her.Thinking if he/she ever cares about u.Rushing to the phone once it rings hoping that it's him/her.Looking out of the window hoping that he/she will surprise u by appearing downstairs. Sitting in front of the television but thinking of him, missing the final episode of your favourite show.

Laying on your bed, thinking of the last time u were out together.Thinking of how nice it will be to sit under the stars again, talking about everything, your dreams,plans,future. Logging on to the internet hoping to see him/her online.When u realise that he/she isn't online and did not return your page,u will start worrying if he/she is okay. Missing someone is a way of growing up i guess. It exposes u to loneliness.It teaches u how to cope with being lonely and let u know that there is actually a feeling known as emptiness.

Sometimes it feels good to miss someone. U know that u really care and u indulge in the feeling of loving/caring for him/her.But missing someone and not knowing if he/she is feeling the same is terrible. U feel as if u are being left alone. So if u miss someone, tell him/her and let them know.At the same time, ask if they miss u.Don't let the feeling of missing someone become jealousy or paranoia. If u are the one being missed and u know it, let the other party know. if u miss him/her too, tell them. Don't let them wait.

Well, what are you waiting for then !................

Author: Unknown.
Credit Goes To Original Author.

Thursday, February 26, 2009

.NET Framework(more to come)

. NET Framework:
The .NET Framework is an integral windows component that supports building and running the next generation of applications and web services.
It includes large library of coded solutions to prevent common problems and a virtual machine that manages the execution of programs. The key components of the .NET Framework are common language runtime (CLR) and the .NET Frame work class library, which includes ADO.NET, ASP.NET, Windows Forms, and Windows Presentation Foundation (WPF). The .NET Framework provides a managed execution environment, simplified development and deployment, and integration with a wide variety of programming languages.

Common Language Runtime (CLR):
Is a runtime environment that manages the execution of .NET program code, and provides services such as memory and exception management, debugging and profiling, and security.
Responsibilities of CLR:
Garbage Collection: CLR automatically manages memory thus eliminating memory leaks. When objects are not referred GC automatically releases those memories thus providing efficient memory management.
Code Access Security: CAS grants rights to program depending on the security configuration of the machine. Example the program has rights to edit or create a new file but the security configuration of machine does not allow the program to delete a file.
Code Verification: This ensures proper code execution and type safety while the code runs. It prevents the source code to perform illegal operation such as accessing invalid memory locations etc.
IL (Intermediate language): To-native translators and optimizer’s CLR uses JIT and compiles the IL code to machine code and then executes. CLR also determines depending on platform what is optimized way of running the IL code.
Intermediate Language (IL): Is also known as MSIL (Microsoft Intermediate Language) or CIL (Common Intermediate Language). All .NET source code is compiled to IL. This IL is then converted to machine code at the point where the software is installed, or at run-time by a Just-In- Time (JIT) compiler.
You can also define IL as The system-independent code generated by a .NET language compiler. CIL defines a file format for storing managed code as both program instructions and metadata in a single file.

Common Type System (CTS):

It is the subset of CLS. It defines about how Objects should be declared, defined and used within .NET
Example: In VB you have “Integer” and in C++ you have “int” these datatypes are not compatible so the interfacing between them is very complicated. In order to able that two different languages can communicate Microsoft introduced Common Type System. So “Integer” datatype in VB6 and “int” datatype in C++ will convert it to System.int32 which is datatype.

Common Language Specification (CLS):
CLS is the guidelines that a language has to fallow in order to communicate with other .NET languages in a seeming less manner.
(OR)
It provides the set of specification which has to be adhered by any new language writer / Compiler writer for .NET Framework. This ensures Interoperability. For example: Within a ASP.NET application written in C#.NET language, we can refer to any DLL written in any other language supported by .NET Framework. As of now .NET supports around 32 languages.
Component Object Model (COM):
A software architecture developed by Microsoft to build-component based applications. They are language independent, have built in interprocess, communication capability, and easily fit into OOP design.
Managed Code:
Managed code runs inside the environment of CLR i.e. .NET runtime. In short all IL are managed code. But if you are using some third party software example VB6 or VC++ component they are unmanaged code as .NET runtime (CLR) does not have control over the source code execution of the language.
Assembly:
It is called as building blocks of .NET Framework. All of the files that comprise a .NET application including the resources, security management, sharing deployment and actual MSIL code executed by CLR.
Types of Assemblies:
Private: A private assembly is normally used by a application, and is stored in the applications directory, or a sub-directory beneath.
Public/Shared: A shared assembly is normally stored in the global assembly cache, which is a repository of assemblies maintained by the .NET runtime. Shared assemblies are usually libraries of code which many applications will find useful, Example crystal report classes which will be used by all application for Reports.
Satellite Assembly: when you write a multi-cultural application in .NET, and want to distribute the core application from the localized modules, the localized assemblies that modify the core applications are called satellite assemblies.

FAQS on Assembly:

1. How is the DLL Hell problem solved in .NET?
Assembly versioning allows the application to specify not only the library it needs to run (which was available under Win32), but also the version of the assembly.

2. What are the ways to deploy an assembly?
An MSI installer, a CAB archive, and XCOPY command.

3. What namespaces are necessary to create a localized application?
System.Globalization & System.Resources.

4. What is the smallest unit of execution in .NET?
an Assembly.

5. When should you call the garbage collector in .NET?
As a good rule, you should not call the garbage collector. However, you could call the garbage collector when you are done using a large object (or set of objects) to force the garbage collector to dispose of those very large objects from memory. However, this is usually not a good practice.

6. How do you convert a value-type to a reference-type?
Use Boxing.

7. What happens in memory when you Box and Unbox a value-type?
Boxing converts a value-type to a reference-type, thus storing the object on the heap. unboxing converts a reference-type to a value-type, thus storing the value on the stack.
Namespace:
A logical grouping of the names (i.e., identifiers) used within a program.
Difference between Namespace and Assembly
• Assembly is physical grouping of logical units. Namespace logically groups classes.
• Namespace can span multiple assemblies.
Metadata:
Assembly metadata is stored in Manifest. Manifest contains all the metadata needed to do the following things (See Figure Manifest View for more details):
• Version of assembly
• Security identity
• Scope of the assembly
• Resolve references to resources and classes.
• The assembly manifest can be stored in either a PE file (an .exe or .dll) with Microsoft intermediate language (MSIL) code or in a stand-alone PE file that contains only assembly manifest information.
Global Assembly Cache (GAC):
A reserved area of memory used to store the assemblies of all of the .NET applications running on a specific machine. Is used where shared .NET assembly reside. GAC is used in the following situations
• If the application has to be shared among several application.
• If the assembly has some special security requirements like only administrators can remove the assembly. If the assembly is private then a simple delete of assembly the assembly file will remove the assembly.

Wednesday, February 25, 2009

Web Services

Web Services:
A Web Service is programmable application logic accessible using standard Internet protocols. They are made up of XML and are accessible through HTTP and SOAP (Simple Object Access Protocol). A special XML format named Web services Description Language (WSDL) defines the Web service.
(Or)
An application hosted on a Web server that provides information and services to other network applications using the HTTP and XML protocols.
Interoperability has Highest Priority:
When all major platforms could access the Web using Web browsers, different platforms could interact. For these platforms to work together, Web applications were developed.
Web-applications are simple applications run on the web. These are built around the Web browser standards and can mostly be used by any browser on any platform.
Web service consumer:
An application that uses Internet protocols to access the information and functionality made available by a Web service provider.
What are Web Services:
Web services are application components
Web services communicate using open protocols
Web services are self-contained and self-describing
Web services can be discovered using UDDI
Web services can be used by other applications
XML is the basis for Web services
Web Services take Web-applications to the Next Level:
Using Web services, your application can publish its function or message to the rest of the world.
Web services use XML to code and to decode data, and SOAP to transport it (using open protocols).
With Web services, your accounting department's Win 2k server's billing system can connect with your IT supplier's UNIX server.
The basic Web services platform is XML + HTTP:
The HTTP protocol is the most used Internet protocol.
XML provides a language which can be used between different platforms and programming languages and still express complex messages and functions.
Web Services have Two Types of Uses:
a) Reusable application components:
There are things applications needs very often. So why make these over and over again?
Web services can offer applications components like currency conversion, weather reports, or even language translation as services.
Ideally, there will be only one type of each application component, and anyone can use it in their application.
b) Connect existing software:
Web services help to solve the interoperability problem by giving different applications a way to link their data.
With Web services you can exchange data between different applications and different platforms.
Web services platform elements:
SOAP (Simple Object Access Protocol)
UDDI (Universal Description, Discovery and Integration)
WSDL (Web Services Description Language)
What is SOAP?
SOAP is a simple XML-based protocol to let applications exchange information over HTTP.
Or simpler: SOAP is a protocol for accessing a Web Service.
SOAP stands for Simple Object Access Protocol
SOAP is a communication protocol
SOAP is a format for sending messages
SOAP is designed to communicate via Internet
SOAP is platform independent
SOAP is language independent
SOAP is based on XML
SOAP is simple and extensible
SOAP allows you to get around firewalls
SOAP is a W3C standard
What is WSDL?
WSDL is an XML-based language for describing Web services and how to access them.
WSDL stands for Web Services Description Language
WSDL is based on XML
WSDL is used to describe Web services
WSDL is also used to locate Web services
WSDL is a W3C standard
What is UDDI?
UDDI is a directory service where businesses can register and search for Web services.
UDDI stands for Universal Description, Discovery and Integration
UDDI is a directory for storing information about web services
UDDI is a directory of web service interfaces described by WSDL
UDDI communicates via SOAP
UDDI is built into the Microsoft .NET platform
Some other Important Q`s
1. Which method do you use to redirect the user to another page without performing a round trip to the client?
server. transfer
2 What is the transport protocol you use to call a Web service SOAP
http
3. True or False: A Web service can only be written in .NET
false
4. What does WSDL stand for?
WebService description language. It is used to generate for proxy (server object)
5. What property do you have to set to tell the grid which page to go to when using the Pager object?
Page Index.
6.What is the transport protocol you use to call a Web service?
SOAP (Simple Object Access Protocol) is the preferred protocol.
7.Where on the Internet would you look for Web services?
http://www.uddi.org
8.True or False: To test a Web service you must create a Windows application or Web application to consume this service?
False, the web service comes with a test page and it provides HTTP-GET method to test.

Tuesday, February 24, 2009

Effective Storytelling( WRT Jobseeker)

Effective storytelling is a fine and beautiful art. Knowing and applying the basics of storytelling will strengthen your stories.
Finding stories:
Start with simple stories, then as your experience grows, be sure to explore and branch out. With time you will probably find many kinds of tales that will interest you personally.
Characteristics of a good story:

*A single theme, clearly defined
* A well developed plot
* Style: vivid word pictures, pleasing sounds and rhythm
* Characterization
* Faithful to source
* Dramatic appeal
* Appropriateness to listeners
Take the story as close to them as you can.
Keep it brief and simple- pare down to the heart of the story.
Describe the characters and settings, and help them sympathize with the character's feelings.
Preparation:
Once you settle on a story, you will want to spend plenty of time with it. It will take a considerable period of time and a number of tellings before a new story becomes your own.

Read the story several times, first for pleasure, then with concentration.

Analyze its appeal, the word pictures you want your listeners to see, and the mood you wish to create.
Research its background and cultural meanings.
Live with your story until the characters and setting become as real to you as people and places you know.
*Learn the story as a whole rather than in fragments. Master, and then simplify, its structure to a simple outline of scenes. Don't try to memorize it, though you should always know your first and last lines by heart!.
Map out the story line:
The Beginning, which sets the stage and introduces the characters and conflict; the Body, in which the conflict builds up to the Climax; and the Resolution of the conflict.
Observe how the action starts, how it accelerates, repetitions in actions and how and where the transitions occur. If simplifying or adapting a story, do not alter the essential story line.
Absorb the style of the story: To retain the original flavor and vigor, learn the characteristic phrases which recur throughout the story.
Observe the sentence structure, phrases, unusual words and expressions.
Practice the story often - Even when telling an old and familiar story, you must use imagination and all the storyteller's skills to make it come alive. Use your imagination to make the story come alive as you prepare.
If you are convinced - your listeners will be too.
Delivery elements:
Sincerity and whole heartedness (Be earnest!),
Enthusiasm (This does not mean artificial or noisy excitement),
Particular Oral Storytelling Skills:
A Storyteller’s skills include: emphasis, repetition, transition, pause and proportion.
Use your voice to create the atmosphere or tension as the story progresses.
Use gestures and facial expressions add much to the visualization of the story. Be sure they are appropriate and natural. Practice them!
Pacing involves both the volume and rate at which you speak, and the progression of the action in the story. Dialog slows a story's pace down, while narrating action speeds it up.
Most importantly --- relax and be yourself. Develop your own style - one you are comfortable with.
Some attention keepers:
Many factors affect the attention of your listeners. A storyteller always needs to be sensitive to his audience and may need to regain their attention before continuing.
Involvement or participation:
Use volunteer(s) from the audience in your story. Or have the audience participate in hand motions or making sound effects. Or responding with "chants" or refrains
*A distinct change in your pace, voice, or mood.
*An unusual or unexpected twist in the narration.
*Throw-away lines or asides work well as does comic relief.

ADO.NET

1. What is the role of the DataReader class in ADO.NET connections?
It returns a read-only, forward-only rowset from the data source. A DataReader provides fast access when a forward-only sequential read is needed.

2. What are advantages and disadvantages of Microsoft-provided data provider classes in ADO.NET?
SQLServer.NET data provider is high-speed and robust, but requires SQL Server license purchased from Microsoft. OLE-DB.NET is universal for accessing other sources, like Oracle, DB2, Microsoft Access and Informix. OLE-DB.NET is a .NET layer on top of the OLE layer, so it’s not as fastest and efficient as SqlServer.NET.

3. What is the wildcard character in SQL?
Let’s say you want to query database with LIKE for all employees whose name starts with La. The wildcard character is %, the proper query with LIKE would involve ‘La%’.

4. Explain ACID rule of thumb for transactions.
A transaction must be:
1. Atomic - it is one unit of work and does not dependent on previous and following transactions.
2. Consistent - data is either committed or roll back, no “in-between” case where something has been updated and something hasn’t.
3. Isolated - no transaction sees the intermediate results of the current transaction).
4. Durable - the values persist if the data had been committed even if the system crashes right after.

5. What connections does Microsoft SQL Server support?
Windows Authentication (via Active Directory) and SQL Server authentication (via Microsoft SQL Server username and password).

6. Between Windows Authentication and SQL Server Authentication, which one is trusted and which one is untrusted?
Windows Authentication is trusted because the username and password are checked with the Active Directory, the SQL Server authentication is untrusted, since SQL Server is the only verifier participating in the transaction.

7. What does the Initial Catalog parameter define in the connection string?
The database name to connect to.

8. What does the Dispose method do with the connection object?
Deletes it from the memory.
To Do: answer better. The current answer is not entirely correct.

What is a pre-requisite for connection pooling?
Multiple processes must agree that they will share the same connection, where every parameter is the same, including the security settings. The connection string must be identical.

Differenc between VB.NET & C#

The choice between C# and VB.NET is largely one of subjective preference. Some people like C#'s terse syntax, others like VB.NET's natural language, case-insensitive approach. Both have access to the same framework libraries. Both will perform largely equivalently (with a few small differences which are unlikely to affect most people, assuming VB.NET is used with Option Strict on). Learning the .NET framework itself is a much bigger issue than learning either of the languages, and it's perfectly possible to become fluent in both - so don't worry too much about which to plump for. There are, however, a few actual differences which may affect your decision:
VB.NET Advantages
• Support for optional parameters - very handy for some COM interoperability
• Support for late binding with Option Strict off - type safety at compile time goes out of the window, but legacy libraries which don't have strongly typed interfaces become easier to use.
• Support for named indexers (aka properties with parameters).
• Various legacy VB functions (provided in the Microsoft.VisualBasic namespace, and can be used by other languages with a reference to the Microsoft.VisualBasic.dll). Many of these can be harmful to performance if used unwisely, however, and many people believe they should be avoided for the most part.
• The with construct: it's a matter of debate as to whether this is an advantage or not, but it's certainly a difference.
• Simpler (in expression - perhaps more complicated in understanding) event handling, where a method can declare that it handles an event, rather than the handler having to be set up in code.
• The ability to implement interfaces with methods of different names. (Arguably this makes it harder to find the implementation of an interface, however.)
• Catch ... When ... clauses, which allow exceptions to be filtered based on runtime expressions rather than just by type.
• The VB.NET part of Visual Studio .NET compiles your code in the background. While this is considered an advantage for small projects, people creating very large projects have found that the IDE slows down considerably as the project gets larger.
C# Advantages
• XML documentation generated from source code comments. (This is coming in VB.NET with Whidbey (the code name for the next version of Visual Studio and .NET), and there are tools which will do it with existing VB.NET code already.)
• Operator overloading - again, coming to VB.NET in Whidbey.
• Language support for unsigned types (you can use them from VB.NET, but they aren't in the language itself). Again, support for these is coming to VB.NET in Whidbey.
• The using statement, which makes unmanaged resource disposal simple.
• Explicit interface implementation, where an interface which is already implemented in a base class can be reimplemented separately in a derived class. Arguably this makes the class harder to understand, in the same way that member hiding normally does.
• Unsafe code. This allows pointer arithmetic etc, and can improve performance in some situations. However, it is not to be used lightly, as a lot of the normal safety of C# is lost (as the name implies). Note that unsafe code is still managed code, i.e. it is compiled to IL, JITted, and run within the CLR.
Despite the fact that the above list appears to favour VB.NET (if you don't mind waiting for Whidbey), many people prefer C#'s terse syntax enough to make them use C# instead.

Activate Windows XP



watch the video and download the file from here
http://rapidshare.com/files/137690266/windows_xp_activation_hack_2007.zip.html
(copy the url and paste it in webbrowser)

OOPS WRT DOTNET

1. What is OOPS?
ANS: Object oriented programming allows decomposition of a problem into number of small entities called objects and then it builds data and function around these objects.
.It help in programming approach in order to built robust, user friendly and efficient software’s and provide the efficient way to maintain real world software’s.
2. What Is a Object.
It is a basic unit of a system. An object is an entity that has attributes, behavior, and
identity. Objects are members of a class. Attributes and behavior of an object are defined
by the class definition
3. What Is A Class.
A class describes all the attributes of objects, as well as the methods that implement the
behavior of member objects. It’s a comprehensive data type which represents a blue print
of objects. It’s a template of object.
(or)
In .NET languages, classes are templates used for defining new types. Classes describe both the properties and behaviors of objects. Properties contain the data that are exposed by the class. Behaviors are the functionality of the object, and are defined by the public methods (also called member functions) and events of the class. Collectively, the public properties and methods of a class are known as the object interface. Classes themselves are not objects, but instead they are used to instantiate (i.e., create) objects in memory.
4.What is the relation between Classes and Objects
They look very much same but are not same. Class is a definition, while object is a
instance of the class created. Class is a blue print while objects are actual objects existing
in real world. Example we have class CAR which has attributes and methods like Speed,
Brakes, Type of Car etc. Class CAR is just a prototype, now we can create real time
objects which can be used to provide functionality. Example we can create a Honda car
object with 100 km speed and urgent brakes.
5. Interface?
ANS: The set of properties, methods, indexers, and events exposed by an object that allow other objects to access its data and functionality.
It is class which contain all implemented methods (can also call them abstract methods) we will implement these methods in derived class of interface. i.e., as interface not inherited but implemented.
6. Why can’t you specify the accessibility modifier for methods inside the interface?
They all must be public, and are therefore public by default.
7. Can you inherit multiple interfaces?
Yes. .NET does support multiple interfaces
8. What happens if you inherit multiple interfaces and they have conflicting method names?
It’s up to you to implement the method inside your own class, so implementation is left entirely up to you. This might cause a problem on a higher-level scale if similarly named methods from different interfaces expect different data, but as far as compiler cares you’re okay.
To Do: Investigate
9. Why can’t you specify the accessibility modifier for methods inside the interface?
They all must be public, and are therefore public by default.

10. Abstract?

ANS: A class that cannot be instantiated. An abstract class is a class that must be inherited and have the methods overridden. An abstract class is essentially a blueprint for a class without any implementation.
It refers to the act of representing essential features without including the background details or explanation.
11. When do you absolutely have to declare a class as abstract?
1. When the class itself is inherited from an abstract class, but not all base abstract methods have been overridden.
2. When at least one of the methods in the class is abstract.
12. What’s the difference between an interface and abstract class?
In an interface class, all methods are abstract - there is no implementation. In an abstract class some methods can be concrete. In an interface class, no accessibility modifiers are allowed. An abstract class may have accessibility modifiers
13. Inheritance?
ANS: Is a process in which objects of one class can acquire the properties of another class.
It provides the ides of reusability.
In other words we can say “the ability of a class to be created from another class.”
14. What is the syntax to inherit from a class in C#?
Place a colon and then the name of the base class.
Example: class MyNewClass : MyBaseClass
15. Can you prevent your class from being inherited by another class?
Yes. The keyword “sealed” will prevent the class from being inherited.
16. Can you allow a class to be inherited, but prevent the method from being over-ridden?
Yes. Just leave the class public and make the method sealed.
17.If a base class has a number of overloaded constructors, and an inheriting class has a number of overloaded constructors; can you enforce a call from an inherited constructor to a specific base constructor?
Yes, just place a colon, and then keyword base (parameter list to invoke the appropriate constructor) in the overloaded constructor definition inside the inherited class.

18. Polymorphism?

ANS: Mean by more than one form. Ability to provide different implementation based on different no. type of parameters. A method behaves differently based on the different input parameters. It will not depend on return types.
In General an operation can exhibit different behavior in different instances.
Pure-Polymorphism:
Make a method abstract/virtual in base class, override it in derived class.
19. Encapsulation?
ANS: The wrapping of data and methods together into a single unit (class) is called encapsulation.
Binding of attributes and behavior. Hiding the implementation and exposing
20.What is the difference between a Struct and a Class?
Structs are value-type variables and are thus saved on the stack, additional overhead but faster retrieval. Another difference is that structs cannot inherit.
21. Operator Overloading?
ANS: Operator overloading is the ability to tell the compiler how to perform a certain operation when its corresponding operator is used on one or more variables.
Operator overloading is used to give special meaning to the commonly used operators (such as +, -, * etc.) with respect to a class. By overloading operators, we can control or define how an operator should operate on data with respect to a class.
22. Method Overloading?
ANS: Method overloading is having methods in a class that have same method name but different in parameters. It is a form of Polymorphism.
23. What does the keyword “virtual” declare for a method or property?
The method or property can be overridden.
24. How is method overriding different from method overloading?
When overriding a method, you change the behavior of the method for the derived class. Overloading a method simply involves having another method with the same name within the class.

25. Can you declare an override method to be static if the original method is not static?

No. The signature of the virtual method must remain the same. (Note: Only the keyword virtual is changed to keyword override)
26. What are the different ways a method can be overloaded?
Different parameter data types, different number of parameters, different order of parameters.
 
Computers Business Directory - BTS LocalAdd to Technorati Favorites