Home » Php » OOps In Php » Oops in Php

Oops in Php

OOPS in Php

Class: class is a user-defined data type, which includes local functions as well as local data.class is a template for making many instance of the same type.

Object:object is a instance of a class.we can create multiple instance of a class.

Member function: Member function are the function defined inside a class and are used to access object data.

Member Variable: Member variables defined inside a class. This data will be invisible to the outside of the class and can be accessed via member functions. member variables are called attribute of the object once an object is created.scope of member variable is depend on access specifier(scope of a variable).

Inheritance: When a class is defined by inheriting existing function of a parent class then it is called inheritance. Here child class will inherit all or few member functions and variables of a parent class.

, , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">