OBJECT ORIENTED PROGRAMMING CONCEPT IN C ++ PROGRAMMING

OBJECT ORIENTED PROGRAMMING CONCEPT

Object-Oriented Programming Concept


C ++ object-oriented programming language developed in the 1980s by Bjarne Stroustrup at AT&T Bell Laboratory, USA. C ++ is called the improved version of C.


To run C ++ on the computer, we use its Tc. Search for exe file, which is always in c: \ terboc 3 in a dir called bin. But now if you want, you can also do the programming by using an online communicator. Language cases are sensitive and usually, the whole work is done in lower case only. Files created in it have an extension .cpp.


OOP’s (Object Oriented Programming)


OOP programs are a new way of organizing code and data. In this, a problem is divided into several elements called Objects. And then data and function are built around those objects.


When various actions are performed on the object by placing the data in a hierarchical class, then the method of programming is called OOP. It is used to simplify complex problems.


Special features of OOP


The virtues of OOP are as follows: -


  1. Object & Class
  2. Encapsulation & Abstraction
  3. Inheritance
  4. Polymorphism
  5. Dynamic Binding
  6. Message Passing

Object class (Object & Class)


An object is a compilation of data and code. Objects can be any place, person, person, or anything else. Data and code or instructions related to the object are defined in the object. Objects whose virtue religion represents a particular quality, we place them in that class and those objects are called members of that class.


OBJECT ORIENTED PROGRAMMING CONCEPT IN C ++ PROGRAMMING


Note: - The action to prevent the data from being directly accessed by the program is called Data Hiding.


Encapsulation & Abstraction


These are the main properties of OOPs. It is a method of creating an independent object by associating data with its function. Can be Data Global or Public. Global or public data is that which can be used by all functions. Private is the data that is available only for the function of which it is a member.


Its main purpose is to make the class independent so that it can be reused without modifying the other program. If the data is public then it can be used by other objects of the program.


Abstraction is a process that presents some essential symptoms without any interpretation or explanation. Sometimes it is also called Data Members.


Inheritance (Succession)


It is the ability to define a class that is already present as a new class. The already prepared class is called Base Class. And the new class is called Derived Class.


The main advantage of inheritance is that we can get a new class by adding a new virtue to a class previously existing by a parent. Thus, a class created in this way will have the properties of both classes.


OBJECT ORIENTED PROGRAMMING CONCEPT IN C ++ PROGRAMMING


The Bus Class also has its own attributes in addition to the properties of the Four-Wheeler Class. As such, it is a large automotive that takes people or passengers to various bus stops.


For example, the Motorcycle is a two-wheeler with an Automotive base class and a two-wheeler derived class.



AKASH TIMES

I AM AN ENGINEER BY PROFESSION BUT BLOGGER IS MY OLD DAYS DREAM TO CREATE MY OWN SITE FOR THOSE WHO ARE CURIOUS ABOUT MY BIRTHPLACE THEN I AM COMING FROM (INDIA). THE CURRENT CITY LIVES IN NAVI MUMBAI, INDIA

Post a Comment

IF YOU HAVE ANY PROBLEM PLEASE FELL FREE TO CONTACT US BY - AKASH TIMES

PREVIOUS POST NEXT POST