Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Interview Questions
Describe the accessibility modifier protected internal.
Posted By :
Posted Date :
December 09, 2009
It's available to derived classes and classes within the same Assembly.
You can also find related Interview Question to
Describe the accessibility modifier protected internal.
What is the scope of the access modifier Protected Internal?
We can access with in the project and also in the derived project
If a method is marked as protected internal who can access it?
Access is limited to the current assembly or types derived from the containing class
Why can't you specify the accessibility modifier for methods inside the interface
They all must be public. Therefore, to prevent you from getting the false impression that you have any freedom of choice, you are not allowed to specify any accessibility, it's public by default.
Why can't you specify the accessibility modifier for methods inside the interface?
They all must be public. Therefore, to prevent you from getting the false impression that you have any freedom of choice,
you are not allowed to specify any accessibility, it's public by default.
What is the Difference between Internal and Protected Internal Access Modifiers?
It can be accessed by any code in the same assembly but cannot be accessable in another assembly
Protected Internal :
It can be accessed by any code in the same assembly, or by any derived class in another assembly. For a particular project.
Define Protected internal.
It is available to derived classes and classes within the same Assembly.
why cant we specify the accesibility modifier for methods inside the interface?
They all are public
What is a modifier?
A modifier, also called a modifying function is a member function that changes the value of at least one data member. In other words, an operation that modifies the state of an object. Modifiers are also known as 'mutators'.
Describe the three levels of data abstraction?
The are three levels of abstraction:
1.Physical level: The lowest level of abstraction describes how data are stored.
2.Logical level: The next higher level of abstraction, describes what data are stored in database and what relationship among those data.
3.View level: The highest level of abstraction describes only part of entire database.
Describe ways of cleaning up objects.
The run time will maintain a service called as garbage collector.
this service will take care of deallocating memory corresponding to
objects.it works as a thread with least priority.when application
demenads for memory the runtime will take care of setting the high
priority for the garbage collector,so that it will be called for execution
and memory will be released.the programmer can make a call
to garbage colector by using GC class in system name space.
Describe the techniques for optimising your application?
. Avoid round-trips to server. Perform validation on client.
. Save viewstate only when necessary.
. Employ caching.
. Leave buffering on unless there is a dire need to disable it.
. Use connection pooling.
. Use stored procedures instead of in-line SQL or dynamic SQL.
Can you describe IUKNOWN interface in short ?
Every COM object supports at least one interface, the IUnknown interface. All interfaces are classes derived from the base class IUnknown. Each interface supports methods access data and perform operations transparently to the programmer. For example, IUnknown supports three methods, AddRef, Release(), and QueryInterface(). Suppose that pinterf is a pointer to an IUnknown. pinterf->AddRef() increments the reference count. pinterf->Release() decrements the reference count, deleting the object when the reference count reaches zero. pinterf->QueryInterface( IDesired, pDesired) checks to see if the current interface (IUnknown) supports another interface, IDesired, creates an instance (via a call to CoCreateInstance()) of the object if the reference count is zero (the object does not yet exist), and then calls pDesired->AddRef() to increment the reference count (where pDesired is a pointer to IDesired) and returns the pointer to the caller.
What is transact-SQL? Describe its types?
Types of Transact-SQL:
SQL Server Provides three types of Transact-SQL statements namely DDL, DCL, and DML.
Data Definition Language (DDL):
It allows creating, altering and dropping database objects.
Data Control Language (DCL):
It is used to control access to data in the database.
It controls permission on the database objects using grant, revoke or deny statement.
Data Manipulation Language (DML):
It involves retrieval, insertion, deletion, modification in the database.
It includes select, insert, update, and delete command.
What is the Scope of public/private/friend/protected/protected friend?
Scope of public/private/friend/protected/protected friend.
Visual Basic/Visual C#
Public/public All members in all classes and projects.
Private/private Members of the current class only.
Friend/internal All members in the current project.
Protected/protected All members in the current class and in classes derived from this member's class. Can be used only in member definitions, not for class or module definitions.
Protected Friend/protected internal All members in the current project and all members in classes derived from this member's class. Can be used only in member definitions, not for class
or module definitions.
Quick Links For Interview Questions Categories:
Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.
So, Start looking our
section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.
Hall of Fame
Terms of Service
Tell A Friend