A File is a bunch of bytes stored on some storage device like magnetic disk or tape etc. Most of the application programs process large volume of data which is permanently stored in files. We can write programs that can read data from file(s) and write data to file(s).
Showing posts with label objects. Show all posts
Showing posts with label objects. Show all posts
January 31, 2013
I/O File Handling in C++ (OOPs)
A File is a bunch of bytes stored on some storage device like magnetic disk or tape etc. Most of the application programs process large volume of data which is permanently stored in files. We can write programs that can read data from file(s) and write data to file(s).
Polymorphism in C++ (OOPs)
Polymorphism is made from two words POLY+MORPHISM which means more the one form. In C++ polymorphism is implemented by overloading a function or an operator. In Function Overloading a single function name is used to perform different tasks.
January 30, 2013
Constructors & Destructors in C++ (OOPs)
In C++, a class only creates a data type and the objects of a class are created and initialized as separate. A constructor (having the same name as that of a CLASS) is a member function which is automatically used to initialize the objects of the CLASS type with legal initial values.
Friend Function in C++ (OOPs)
A Friend Function is a non-member function that can access private data’s. A friend CLASS is a class whose member functions can access another class i.e. private and protected classes.
Classes & Objects in C++ (OOPs)
“C with classes” was the original name given by the originator Stroustrup initially, which now days is popular known form as C++ or OOPs (Object Oriented Programming). Classes and objects are the most important feature of C++. The Class implements OOPs features and ties then together. We have already seen that a structure groups different types of elements and a function organizes the program actions to perform the desired task.
Subscribe to:
Posts (Atom)