Exforsys.com
 

Sponsored Links

C++ Tutorials

 
Home Tutorials C++
 

Elements of Object Oriented Programming

 
Category: C++
Comments (0)

Elements of Object Oriented Programming

Page 1 of 2

Elements of Object Oriented Programming


Object-Oriented Programming is centered around the new concepts such as classes,  polymorphism, inheritance, etc. it is a well suited paradigm for the following:



  • Modeling the real world problem as close as possible to the users perspective.
  • Interacting easily with computational environment using familiar metaphors
  • Constructing reusable software components and easily extendable libraries.
  • Easily modifying and extending implementations of components without having to recode every thing from scratch.

Definition of OOP:


OOP uses objects as its fundamental building blocks. Each object is an instance of some class. Classes allow the mechanism of data abstraction for creating new data types. Inheritance allows building of new classes from existing classes. Hence if any of these elements are missing in a program we cannot consider that program as objected oriented program.


Object oriented programming is a programming methodology that associates data structures with a set of operators which act upon it. In OOP’s terminology an instance of such an entity is known as an object. It gives importance to relationships between objects rather than implementation details. Hiding the implementation details within an object results in the user being more concerned with an objects relationship to the rest of the system, than the implementation of the object’s behavior.


Objects:


Objects are the basic run-time entities in an object-oriented system. Every object is associated with data and functions which define meaningful operations on that object.


What is Encapsulation


It is a mechanism that associates the code and the data it manipulates into a single unit to and keeps them safe from external interference and misuse. In C++ this is supported by construct called class. An instance of an object is known as object which represents a real world entity.



What is Data Abstraction


A data abstraction is a simplified view of an object that includes only features one is interested in while hides away the unnecessary details.  In programming languages, a data abstraction becomes an abstract data type or a user-defined type. In OOP, it is implemented as a class.


Next Page: Elements of Object Oriented Programming - Page 2


Read Next: Basic concepts of OOPS and Structure of C++ program



 

 

Comments



Post Your Comment:

Members Please Login
Your Name:*
e-mail ID:(required for notification)*
Image Verification: 
 
 Subscribe    

Sponsored Links

 

Subscribe via RSS


Get Daily Updates via Subscribe to Exforsys Free Training via email


Get Latest Free Training Updates delivered directly to your Inbox...

Enter your email address:


 

Subscribe to Exforsys Free Training via RSS
 

 
Partners -  Privacy and Legal Policy -  Site News -  Contact   Sitemap  

Copyright © 2000 - 2009 exforsys.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape