Wats the diff between sealed class and private class in
inheritance

Answer Posted / robert j

continuation from the prev.post...



We can put the "private" keyword, if and if only the class
is in public class.. It is rarely used..

public class a
{
...

private class b
{
..
}
}



otherwise, we can not put private keyword over the classes
directly..

Is This Answer Correct ?    10 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we overload indexer in c#?

483


What are the types of parameters in c#?

528


Write a console application and implement the ternary operator to decide whether the age a user entered after being prompted is allowed to vote or not(given that only citizens between 18 and 120 years only inclusive can vote). Use exception handling for non-numerical input.

1896


Why do we use interfaces in c#?

493


Name the method of servicebase class?

538






Tell me the difference between value passing and address passing?

627


Can main method be final?

471


What is a delegate how is it type safe?

465


Is php better than c#?

497


What are interfaces in c#?

517


Which class does the remote object has to inherit?

606


Can we inherit class that contains only one private constructor?

517


What is asp net c#?

497


What to implement on my class Finalize or IDisposable

558


Can you call from an inherited constructor to a specific base constructor if both base class and an inheriting class has a number of overloaded constructors?

524