Originally posted by Smitha Ballikar:
For your 2 nd question:
This will not compile because the overriding method cannot have more restrictive access modifier.Your base class method is public.So derived class method cannot have any other access modifier other than public.
Hope this helps!!