Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Object-Oriented Concepts
Post: #1

Object-oriented techniques achieve further reusability through the encapsulation of programs and data. The techniques and mechanisms we shall discuss here are primarily concerned with paradigms for packaging objects in such a way that they can be conveniently reused without modification to solve new problems.

Instantiation and Object Classes
Instantiation is perhaps the most basic object-oriented reusability mechanism. Every programming language provides some built-in data types (like integers and floating-point numbers) that can be instantiated as needed. Objects may either be statically or dynamically instantiated. Statically instantiated objects are allocated at compile-time and exist for the duration that the program executes. Dynamically instantiated objects require run-time support for allocation and for either explicit deallocation or some form of garbage collection.

The next step is to provide a way for programmers to define and instantiate their own objects. This can be done by providing the programmer with a facility to define object classes, as is the case in Smalltalk. An object class specifies a set of visible operations, a set of hidden instance variables and a set of hidden methods which implement the operations. The instance variables can only be modified indirectly by invoking the operations. When a new instance of an object class is created, it has its own set of instance variables, and it shares the operations' methods with other instances of its class. A simple example is the class ComplexNumber.

The programmer would define an interface consisting of the arithmetic operations that complex numbers support, and provide the implementation of these operations and the internal data structures. It would be up to the programmer to decide, for example, whether to use a representation based on Cartesian or polar coordinates. An alternative approach to instantiation is to use prototypical objects rather than object classes as the "template" from which new instances are forged. This is exactly what we do when we make a copy of a text file containing a document composed in a formatting language like TeX ~ or troff: we reuse the structure of the old document, altering its contents, and possibly refining the layout. This approach is useful to avoid a proliferation of object classes in systems where objects evolve rapidly and display more differences than similarities.

Important Note..!

If you are not satisfied with above reply ,..Please


So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: recovery oriented services, multithreading concepts, object oriented database pdf, 3d machine concepts, oop concepts in php ppt, operating system concepts 8th edition, seminar on object oriented database,

Quick Reply
Type your reply to this message here.

Image Verification
Image Verification
(case insensitive)
Please enter the text within the image on the left in to the text box below. This process is used to prevent automated posts.

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  service oriented architecture full report project report tiger 12 6,465 27-04-2015 01:48 PM
Last Post: seminar report asees
  data warehousing concepts project topics 7 6,039 05-02-2013 12:00 PM
Last Post: seminar details
  OBJECT TRACKING AND DETECTION full report project topics 7 8,307 23-11-2012 01:32 PM
Last Post: Guest
  OBJECT-ORIENTED APPROACH IN SOFTWARE DEVELOPMENT project report helper 2 1,790 20-11-2012 12:48 PM
Last Post: seminar details
  Object tracking in video scenes computer science crazy 1 1,822 06-10-2012 11:36 AM
Last Post: seminar details
Last Post: computer girl
  Automated Negotiation in Service Oriented Architecture computer science crazy 1 1,055 16-02-2012 12:16 PM
Last Post: seminar paper
Exclamation Service-oriented architecture computer science crazy 1 1,072 16-02-2012 12:16 PM
Last Post: seminar paper
Last Post: seminar paper
  Computer Vision in the field of Object Tracking seminar class 0 895 28-04-2011 03:55 PM
Last Post: seminar class