Pages

Object Oriented Concept

Object Oriented programming involves segregating our entities into different classes . Objects are used to access the properties of classes . This provides security and is called encapsulation .  Objects having similar properties can be reused and classes can be easily extended .

In case of object oriented concept variables within a class are called properties and functions are called methods . A new object is created as :

                                                 var Color = new Object( );

Color is our newly created object in this case . The convention of using capital first letter for naming objects is used in this case .