Explain the Scope of
public/private/friend/protected/protected friend.

Answer Posted / jiten

public members r available all classs
private members r available only within class
protcted members r available drive classs
protected friend members r availble in drived classs and
all classs whitch r in same assambly
friend memebers r available for all classs witch in same
assambly

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the types of Polymorphism.

583


What are generics in c#.net?

610


Where is the keyword void used?

552


What is the difference between decimal and integer?

526


is it possible to access a remote web service Without UDDI?

547






For methods inside the interface why can’t you specify the accessibility modifier?

553


Which string method is used for concatenation of two strings in c#?

475


How can I get the ascii code for a character in c#?

570


What are value types and reference types?

554


What is IL / CIL / MSIL?

667


What is the difference between delegates and events in c#?

426


Does c# support multilevel inheritance?

485


How do I declare a pure virtual function in c#?

595


In howmany ways can you deploy an assembly?

545


Write the syntax for catching an exception in c#?

491