C# Private class members of a base class are directly accessible in derived classes code example

Example 1: c# class inheritance constructor

public otherclass{

    public otherclass(a,b){
          a=0;
          b=1;
    }

}

public baseClass : otherclass{
  
  	public baseClass(string str,int a, int b): base(a,b){
    	str="whatever";
    }
  
}

Example 2: c# implement a superclass in subclass

class Sedan : Vehicle
{
}

// class Sedan will now inherit Vehicles' members

class Sedan : Vehicle, IAutomobile
{
}

// Sedan will now inherit Vehicles' members and promise to
//				  implement the functions of interface IAutomibile