We know that a private member of a basic class is not inheritable . Is it any way possible for the objects of a derived class to access the private members of the basic class? If yes how? Remember bare class can not be modified

Compare and contrast the notions of struct and, class in C++. Provide a constructor that is capable of using the current time from the time ( ) function declared in C++ standard library header &lt; C time &gt; to initialize an object of the time class.

Write a function power ( ) to raise a number m to a power n. The 7 function takes a double for m and int value for n, and return the result correctly. Use a default value of 2 for n to make the function to calculate squares when this argument is omitted. Write a main ( ) that gets the values of m and n from the user totest the function.

Write a C++ program to perform the deletion of white spaces such as horizontal tab, vertical tab, Space, line feed, new line and carriage return from a text file and to store the contents of the file without white spaces on another file.

Given the following base class :-Class area_cl{ public : double height; double weight;};Create three derived classes called 'rectangle' isosceles triangle and 'cylinder' that inherit 'area_cl' . Have each class include a function 'area( )' that returns the area of a rectangle isosceles triangle and 'cylinder', as appropriate. Use parameterized constructors to initialize height and width. Write the complete C++ program.

Write a class to represent time that includes the member function to perform the following:-- Take input for time and hours and minutes- Multiply time by scalar value- Add two times- Display the time in the form hours : minutes

Create a base class called ‘shape'. Use this class to store two, ‘double'. type values that could be used to compute the area of figures. Derive two specific classes called ‘triangle' and ‘rectangle' from the base ‘shape’. Add to the base class, a member function 'getdata( )'; to, initialize base class data members and another member function 'display-area ( )' to compute and 'display the area of figures. Make 'display-area ( )' as s virtual function and redefine this function in the derived classes to suit their requirements.

When a base class is inherited as public by the derived class? What happens to its public members? What happens to its private members? If the base has inherited as private by the derived class. What happens to it public and private member?