File system: – The fstream is a class in C++ that supports read from the file, create the file, write onto the file, open the file, close the file etc.

File System

Ofstream: – ofstream is a class which is used to write the text onto the file.

Ifstream: – ifstream is a class which is used to read the text onto the file.

Object slicing: – It’s a term in which the object of derived class will be assigned into the object of base class. During assignment, the content inside derived class object will initialized the member variable of base class and the member variable of derived class object will be sliced off.

Advertisements