Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Interview Questions
Define Protected internal.
Posted By :
Posted Date :
January 10, 2012
It is available to derived classes and classes within the same Assembly.
You can also find related Interview Question to
Define Protected internal.
Describe the accessibility modifier protected internal.
It's available to derived classes and classes within the same Assembly.
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
What is the scope of the access modifier Protected Internal?
We can access with in the project and also in the derived project
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 namespace in C++ ?
It is a feature in c++ to minimize name collisions in the global name space. This namespace keyword assigns a distinct name to a library that allows other libraries to use the same identifier names without creating any name collisions. Furthermore, the compiler uses the namespace signature for differentiating the definitions.
Define precondition and post-condition to a member function.
A precondition is a condition that must be true on entry to a member function. A class is used correctly if preconditions are never false. An operation is not responsible for doing anything sensible if its precondition fails to hold.
For example, the interface invariants of stack class say nothing about pushing yet another element on a stack that is already full. We say that isful() is a precondition of the push operation.
A post-condition is a condition that must be true on exit from a member function if the precondition was valid on entry to that function. A class is implemented correctly if post-conditions are never false.
For example, after pushing an element on the stack, we know that isempty() must necessarily hold. This is a post-condition of the push operation.
Define the "integrity rules"
There are two Integrity rules.
1.Entity Integrity: States that "Primary key cannot have NULL value"
2.Referential Integrity: States that "Foreign Key can be either a NULL value or should be Primary Key value of other relation.
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.
When you inherit a protected class-level variable, who is it available to?
Classes in the same namespace.
Name the method in VB.NET used to define a controls color?
Whether we can have protected consturctor for a class?
Yes we can have
Which design pattern should have private or protected constructor?
singleton design pattern should have private or protected constructor
How to define a button USING XAML?
To define a button in WPD using XAML use the following syntax,
element specifies the use of the Button class.
To define abstract class in VB which keyword is used?
MustInherit keyword is used to create an abstract class in VB.
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