Are private class-level variables inherited?
Answers were Sorted based on User's Feedback
Answer / guest
Yes, but they are not accessible, so looking at it you can
honestly say that they are not inherited. But they are
Is This Answer Correct ? | 7 Yes | 0 No |
Its not feasible to inherit the private class variable to
the successor classes.
Is This Answer Correct ? | 0 Yes | 1 No |
When do we generally use destructors to release resources?
Is c and c# the same?
How do you prevent a class from being inherited in c#?
How do I do implement a assert?
What is transparent caching with aop ?
Which is executed if an exception has not occurred?
Asha buys 16 Chocolates for rs 12 and 24 chocolates for rs 20, if she sold them 30 chocolates for rs 30 then what is the Gain/Loss percentage? Gain(700/19 %) Loss(700/19 %) Gain(500/19 %) Loss(500/19 %) If one person ate 100 grapes in 5 days and 6 more each day from starting, what was the no of grapes he ate on first day? 6 8 10 7 If seven men P, Q, R, S, T, U, V parked his car, P and Q something like that. 6 student J, K, L, M, N, O went for picnic in 2 batches, K and L have to go together, M and O do't go together, if O and L go in one batch then which of these combination will be wrong. Jmnp Jklo klop JKLO a boat can go upstream and down stream, if it goes 5/2 times of downstream at the speed of 6 kmph then what will be the speed of upstream? 15 KMPH 12 KMPH 10 KMPH 11 KMPH A, B, C, D, E sitting on a table, A sits 2 seat left from B and C sits 2 seat right from B then what will not be the combination ACDE
class Program { void add() { int x=10, y=20; fun(); Console.WriteLine("{0}", sum); } void fun() { int sum; sum = x + y; } static void Main(string[] args) { Program f =new Program(); f.add(); } } Debug above program.....
Why References are stored on heap and variables on stack?
Why can?t you specify the accessibility modifier for methods inside the interface?
How do you restrict the type which can be used in custom generic?
What is difference between array and list?