c++

File operations

File operations in C++ | c++ Advanced | Part – 12

C++ allows us to perform operations on files. We can read contents of a file and even write some content in the file through a C++ program. Isn’t that awesome? To perform operations on files, C++ provides several built-in functions. These functions are all declared in fstream header file. To perform operations on file, the fstream and iostream header files should […]

File operations in C++ | c++ Advanced | Part – 12 Read More »

What is inheritance

What is inheritance? | C++ Advanced | Part -4

Why do I look so similar to my father? My nose is also exactly like him. That’s because you have inherited his features. Inheritance is when a class derives some properties from another class. Just like human beings inherit features from their parents. The class which uses/inherits the properties is known as derived class or sub class. And the class from which the features

What is inheritance? | C++ Advanced | Part -4 Read More »