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)


Input output file handling in C++ (OOPs) banner

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 sequence and types with description 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

Inheritance in C++ (OOPs)


Inheritance (reusability) of codes in C++ (OOPs) programming language

It is the process by which objects of one class acquire the properties of objects of another class. The old class is referred as Base CLASS and the class that inherits the Base Class if Derived CLASS

Constructors & Destructors in C++ (OOPs)


constructors and destructors in C++ (OOPs) programming language

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)


friend function and class in C++ (OOPs) programming language


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)


practical use of classes and objects in C++ (OOPs) programming language

“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.