Thursday, August 26, 2021

object oriented programming in c++

 

Objects oriented programing

 

The basic methodology in which we design code using classes and objects

It is the process of through which software are develops

The goal of object oriented programming is to crate reliable, reusable and extendable system

In oop classes and objects are created to make programming more secure and protected

Advantages of using oop

        I.            It provides data encapsulation

     II.            It also provides abstraction                        

  III.            Reuseabily of code

   IV.            We not need to write code again and again

      V.            Make code more readable and effective

 Objects:

An object is a state well defined behavior and unique entity

As we create a member of class name age we can access them by creating an object an access them

Classes

ü User defined data types

ü Data structure

ü Basic unit of oop

ü Combination of functions

 There are two types of classes

*   Base class/parent class/super class

*   Child classes/derived class/subclass

Parent class

A class whose properties inherited by sub class called base class

Child class

A class that inherits the properties of another class

there are four major concepts in oop

chick link below to access these topic details

1. inheritance


2. Abstraction


3. Encapsulation


4. polymorphism


No comments:

Post a Comment

How to apply for Canada visa?

  Applying for a Canada Visa: A Comprehensive Guide Explore the Beauty of Canada - Your Step-by-Step Visa Application Guide Introduction Can...