|
![]() |
#1 |
Registered User
Join Date: Feb 2013
Location: Bangalore
Posts: 1,229
|
Intro to Object Oriented Programming
Object Oriented Programming or OOP refers to langauges that uses objects in programming.
The main aim of OOP is to bind together the data and the functions that operate on them so that no other part of the code can access this data except that function Class Class is a blueprint for creating particular data structures, providing initial values for state, and implemntations of behavior. Object Object is an instance of a class which has the structure of its blueprint but also owns its unique state and behavior. Encapsulation Encapsulation is achieved when each object keeps its state private, inside a class. Other objects don’t have direct access to this state. Abstraction Abstraction means that each object should only expose a high-level mechanism for using it. This mechanism should hide internal implementation details. Inheritance Objects are often similar. They share common logic. With inheritance, the child class reuses all fields and methods of the parent class and can implement its own. Polymorphism Polymorphism means “many shapes”. It gives a way to use a class exactly like its parent, but each child class keeps its own methods as they are.
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
what makes java an object oriented programming language? | iammanisha | Java | 0 | 06-21-2017 10:56 PM |
A programming language that uses a visual representation | thiennhientuoid | HTML / DHTML | 0 | 06-24-2016 12:24 AM |
What is the meaning of object oriented in programming ? | sana8745 | Programming General | 5 | 03-24-2015 10:15 PM |
The fresh programming language of Google | jadensteele152 | 0 | 12-11-2011 10:47 PM | |
Google�s new programming language | jamesnghtn4 | 1 | 10-28-2011 10:08 PM |