What Is Basic Concepts Of Object-Oriented Programming?
1.Object and Class:- Objects are the basic runtime entities in an object-oriented system. They may represent a person,a place,a bank account , a table of data or any item that the program may handle. They may also represent user-defined data such as vectors and lists. Any programming is analyzed in terms of objects and the nature of communication between them. Program objects should be chosen such that they match closely with the real world objects. As pointed out earlier , an object takes up space in the memory and has an associated address like a record in Pascal, or a structure in C. When a program is executed the objects interact by sending message to one another. 2.Data Abstraction and Encapsulation:- The wrapping up of data and methods into a single unit(called class) is known as encapsulation. Data encapsulation is the most striking feature of a class. The data is not accessible to the outside world and only those methods,which are wrapped in the class, can access it. These...