GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  OOPS
Go To First  |  Previous Question  |  Next Question 
 OOPS  |  Question 245 of 258    Print  
What are the demerits of Object Oriented Programming(OOPS)?

  
Total Answers and Comments: 2 Last Update: August 10, 2009     Asked by: S. Chinnadurai 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: prateeks88
 
Considering the demerits of the OOPS I would say that-it is a lenthy process and takes time for coding(increases the no. of lines of code) as compared to the procedurals BUT OOPS simplifies the complex programmes and has much more advantges over its neglectable diadvantges



Above answer was rated as good by the following members:
karthik_knight2000
November 04, 2008 23:29:24   #1  
prateeks88 Member Since: November 2008   Contribution: 3    

RE: What are the demerits of Object Oriented Programming(OOPS)?
Considering the demerits of the OOPS I would say that-it is a lenthy process and takes time for coding(increases the no. of lines of code) as compared to the procedurals BUT OOPS simplifies the complex programmes and has much more advantges over its neglectable diadvantges


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
August 10, 2009 07:51:13   #2  
swamisivakumar Member Since: August 2009   Contribution: 1    

RE: What are the demerits of Object Oriented Programming(OOPS)?
Personally I find oops code can get very hard to read even well written code. The problem is inheritance and polymorphism.The problem with inheritance is that if you want to figure out what a given method does you have to search up the class hierarchy until you find its definition. In a way inheritance is worse than goto--at least with goto the destination is somewhere in your function but with inheritance it could be in any number of files. The problem with polymorphism means that simply finding a function with the right name is not sufficient you have to also look at the parameters. Trying to read code without a good class browser is almost impossible. It IS impossible once you get into virtual functions where the decision of which function gets called is only determined at runtime.For example suppose you're trying to figure out the following line of code obj.Write(a);. Which function is being called? Well if you're lucky and you know what type obj is then you probably only have about 10 different versions of Write() to pick from depending upon what a is. If you're unlucky and obj can be of several types then you got a lot of work cut out for you.Two other oops features that can get really hard to read are operator overloading (fortunately it's rarely used) and class properties that look like simple variable assignment but are really complex function calls.My very first exposure to oops programming was as an intern at Sun Labs (just downstairs from the tcl team) where my job was to instrument C++ kernel code to determine where time was being spent. Kernel programming is hard enough but the real bear was just trying to read the well-written but deeply inherited code.
 
Is this answer useful? Yes | No

 Related Questions

Latest Answer :  Object is a instance of a class . say for example if car is class ,maruti car and matiz car are objects of a class . ...

Latest Answer : Transient object : 1> emporary Object                              2>    Can not be serilised (ie. can not  save to secodary ...

Latest Answer : cc -o x.o x.c creats a object file ...

Latest Answer : Object is an instance of class ...

Latest Answer : class is the collection of same type of objects .whereas object is an instance of a class.ex :humanbeing is a class whose objects can be man ,woman etc. ...

Latest Answer : An object is created when a class is instantiated. This is the time when memory is allocated to the object and the class constructor is called to initialize the data members. ...

Latest Answer : Procedural languages enforce sequential processing of instructions. Object oriented languages may implement event driven processing.Procedural languages store all data as global while OOPs languages support data encapsulation -- all related data is stored ...

I have just started doing OOP design. My experience has been in RDBMS. Where we work with tables, relation between them defined using foreign keys. Can anyone pl. help in designing classes for a simple case here. There are two tables (states, districts). Districts contains stateId as foreign key. So state to district 1-many relation is there. Such things how do we design in oops. Thanx in advance
Read Answers (2) | Asked by : sudha
Tags : RDBMS, OOPS

Latest Answer : OOPs is closer to real life representation of the objects which we want to program.Hierarchical relationships can be represented using inheriatnce. Data can be divided as public and private -- also we can provide interface for entering and validating ...
Read Answers (2) | Asked by : ritu
Tags : OOPS

Latest Answer : A friend function can access all private protected and public data of a class. A class has to declare a function or another class as a friend. Also the friendship is one way. Class A is friend of class B does not mean that class B is friend of class A. ...
Read Answers (1) | Asked by : vasanthakumar
Tags : OOPS


 Sponsored Links

 
Related Articles

Service Oriented Java Business Integration Review

Service Oriented Java Business Integration Review Introduction If you ve read through the texts which give you an introduction to SOA or Web Services you will often find them to be quite frustrating and the reason for this is because they spend too much time referencing business processes which are
 

ODP.NET - OracleCommand Object

ODP NET More About the OracleCommand Object Till now we have seen OracleCommand working with OracleDataReader OracleCommand is not simply meant for OracleDataReader It has got a lot of functionality for itself Let us see few of the most commonly used features of OracleCommand in this section We will
 

Microsoft AJAX Library - Creating Object Members on the Fly

Creating Object Members on the Fly One major difference between OOP in C and ASP NET and OOP in JavaScript is that JavaScript allows creating object members on the fly" This is true for objects and classes that you create yourself and also for JavaScript s own objects and types as well He
 

Microsoft AJAX Library - Object-Oriented JavaScript

Object Oriented JavaScript Objects and classes are implemented differently in JavaScript than in languages such as C VB NET Java or C However when it comes to using them you ll feel on familiar ground You create objects using the new operator and you call their methods or access their fields using t
 

Concepts of Object-Oriented Programming

Object Oriented JavaScript In this chapter you ll learn about OOP Object Oriented Programming and how it relates to JavaScript As an ASP NET developer you probably have some experience working with objects and you may even be familiar with concepts such as inheritance However unless you re already a
 

OOPS Tutorials

Object oriented programming OOP is a computer science term used to characterize a programming language that began development in the 1960’ s The term object oriented programming’ was originally coined by Xerox PARC to designate a computer application that describes the methodol
 

Service Oriented Infrastructure

Service Oriented Infrastructure Service Oriented Infrastructure is a systematic means for describing Information Technology infrastructures in the terms of a service The underlying principles of Service Oriented Infrastructure revert back to LDAP and Mainframe technologies among others Where Service
 

Service Oriented Design and Development

Service Oriented Design and Development SOAD Service Oriented Analysis and Design The term Service Oriented Analysis and Design  was first used in the publication Elements of Service Oriented Analysis and Design Service Oriented Analysis and Design is also covered in the publication Service
 

Object-Oriented Client-Server Internet

Object Oriented Client Server Internet OCSI Environments as IT Infrastructure Client Server Basics Object Oriented Client Server Internet OCSI environments provide the IT infrastructure for supporting OCSI applications For our purposes infrastructure refers to operating systems networks middleware
 

JavaScript String Object

JavaScript String Object In this JavaScript tutorial you will learn about String Object purpose of string object in JavaScript purpose of string object indexof method lastIndexOf method and substring method along with syntax and example mosgoogle center Purpose of String Object in JavaScript The mai
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape