Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
එක පැකේජ් එකයි මාසෙටම Unlimited Internet. තාමත් DATA CARD දාන්න සල්ලි වියදම් කරනවද? අඩුම මිලට අපෙන්.
sayuru bandara
Updated:
Tuesday at 12:30 PM
Ad icon
ඉන්ටර්නෙට් එකෙන් හරියටම සල්ලි හොයන්න සහ Success වෙන්න කැමතිද? 🚀 (E-Money & Success Stories)
siri sumana
Updated:
Saturday at 11:44 PM
Gemini AI PRO 18 months Offer
Hawaka
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
OO PHP Learning HELP
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="Identity" data-source="post: 20959941" data-attributes="member: 559166"><p><strong>Object Oriented Concepts</strong></p><p></p><p> Before we go in detail, lets define important terms related to Object Oriented Programming.</p><p> </p><ul> <li data-xf-list-type="ul"><strong>Class</strong> − This is a programmer-defined data type, which includes local functions as well as local data. You can think of a class as a template for making many instances of the same kind (or class) of object.</li> <li data-xf-list-type="ul"><strong>Object</strong> − An individual instance of the data structure defined by a class. You define a class once and then make many objects that belong to it. Objects are also known as instance.</li> <li data-xf-list-type="ul"><strong>Member Variable</strong> − These are the variables defined inside a class. This data will be invisible to the outside of the class and can be accessed via member functions. These variables are called attribute of the object once an object is created.</li> <li data-xf-list-type="ul"><strong>Member function</strong> − These are the function defined inside a class and are used to access object data.</li> <li data-xf-list-type="ul"><strong>Inheritance</strong> − 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.</li> <li data-xf-list-type="ul"><strong>Parent class</strong> − A class that is inherited from by another class. This is also called a base class or super class.</li> <li data-xf-list-type="ul"><strong>Child Class</strong> − A class that inherits from another class. This is also called a subclass or derived class.</li> <li data-xf-list-type="ul"><strong>Polymorphism</strong> − This is an object oriented concept where same function can be used for different purposes. For example function name will remain same but it make take different number of arguments and can do different task.</li> <li data-xf-list-type="ul"><strong>Overloading</strong> − a type of polymorphism in which some or all of operators have different implementations depending on the types of their arguments. Similarly functions can also be overloaded with different implementation.</li> <li data-xf-list-type="ul"><strong>Data Abstraction</strong> − Any representation of data in which the implementation details are hidden (abstracted).</li> <li data-xf-list-type="ul"><strong>Encapsulation</strong> − refers to a concept where we encapsulate all the data and member functions together to form an object.</li> <li data-xf-list-type="ul"><strong>Constructor</strong> − refers to a special type of function which will be called automatically whenever there is an object formation from a class.</li> <li data-xf-list-type="ul"><strong>Destructor</strong> − refers to a special type of function which will be called automatically whenever an object is deleted or goes out of scope.</li> </ul></blockquote><p></p>
[QUOTE="Identity, post: 20959941, member: 559166"] [B]Object Oriented Concepts[/B] Before we go in detail, lets define important terms related to Object Oriented Programming. [LIST] [*][B]Class[/B] − This is a programmer-defined data type, which includes local functions as well as local data. You can think of a class as a template for making many instances of the same kind (or class) of object. [*][B]Object[/B] − An individual instance of the data structure defined by a class. You define a class once and then make many objects that belong to it. Objects are also known as instance. [*][B]Member Variable[/B] − These are the variables defined inside a class. This data will be invisible to the outside of the class and can be accessed via member functions. These variables are called attribute of the object once an object is created. [*][B]Member function[/B] − These are the function defined inside a class and are used to access object data. [*][B]Inheritance[/B] − 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. [*][B]Parent class[/B] − A class that is inherited from by another class. This is also called a base class or super class. [*][B]Child Class[/B] − A class that inherits from another class. This is also called a subclass or derived class. [*][B]Polymorphism[/B] − This is an object oriented concept where same function can be used for different purposes. For example function name will remain same but it make take different number of arguments and can do different task. [*][B]Overloading[/B] − a type of polymorphism in which some or all of operators have different implementations depending on the types of their arguments. Similarly functions can also be overloaded with different implementation. [*][B]Data Abstraction[/B] − Any representation of data in which the implementation details are hidden (abstracted). [*][B]Encapsulation[/B] − refers to a concept where we encapsulate all the data and member functions together to form an object. [*][B]Constructor[/B] − refers to a special type of function which will be called automatically whenever there is an object formation from a class. [*][B]Destructor[/B] − refers to a special type of function which will be called automatically whenever an object is deleted or goes out of scope. [/LIST] [/QUOTE]
Insert quotes…
Verification
Hath warak paha keeyada? (hatha wadikireema paha)
Post reply
Top
Bottom