Question 655: Which of the following statements are correct about the C#.NET code snippet given below?namespace IndiabixConsoleApplication { class index { protected int count; public index() { count = 0; } } class index1: index { public void increment() { count = count +1; } } class MyProgram { static void Main(string[] args) { index1 i = new index1(); i.increment(); } } }countshould be declared aspublicif it is to become available in the inheritance chain.countshould be declared asprotectedif it is to become available in the inheritance chain.While constructing an object referred to byifirstly constructor of index class will be called followed by constructor ofindex1class.Constructor of index class does not get inherited inindex1class.countshould be declared as Friend if it is to become available in the inheritance chain.
tcs
wipro
infosys
general
aptitude
inheritance
No answer description is available.Let's discuss.