Friday, September 11, 2020

Object Oriented Programming Concepts

                                    Object Oriented Programming Concepts


1. OOPS is a methodology to design a program using Class and objects.This concept is useful in representing real world entities.

2. Class(ex map) is a blueprint of object(building). class defines structure of an object.

3. object is created with new keyword(Heap memory). new keyword used to responsible for allocating memory of class.

4.A class can can have no of objects.

5.Object is Real world entity which has properties and behaviour.

Constructor:

i)constructor is member method of a class

ii)It has same name as class

iii)No return type

iv)used to initialize member

v)automatically called when you create a object





5 comments: