what are the disadvantages of C++?

Answers were Sorted based on User's Feedback



what are the disadvantages of C++?..

Answer / kanthi

Well, there are many. A few to mention:
* Does not provide very strong type-checking. c++ code is
easily prone to errors related to data types, their
conversions, for example, while passing arguments to
functions.
* Does not provide efficient means for garbage collection,
as already mentioned.
* No built in support for threads.
* Gets complex when u want to develop a graphics rich
application in c++
* portability of code on various platforms, etc

Is This Answer Correct ?    135 Yes 20 No

what are the disadvantages of C++?..

Answer / ranjan

it's not pure object oriented programming language. Because
c++ doesn't support for garbage collection...Which is a
disadvantage of C++. Which is overcome by java.

Is This Answer Correct ?    129 Yes 49 No

what are the disadvantages of C++?..

Answer / rajesh patil

it is not pure object oriented language.

Is This Answer Correct ?    103 Yes 38 No

what are the disadvantages of C++?..

Answer / mandoos

persistance

Is This Answer Correct ?    77 Yes 43 No

what are the disadvantages of C++?..

Answer / srikaanth

It is not pure object oriented programming language.
not platform independent.

Is This Answer Correct ?    60 Yes 26 No

what are the disadvantages of C++?..

Answer / thananjayan

C++ Disadvantages:
1.It doesn't support to create GUI oriented S/W easily
2.It can't run all the PLATFORM(WINDOWS,UNIX,etc.)
3.It create .OBJ format,when it compiling so easy to HACKING
4.Storage of our application is so poor,bcoz it having file
concept only not DATABASE
5.Poor in Multitasking

Is This Answer Correct ?    54 Yes 25 No

what are the disadvantages of C++?..

Answer / madhava rao

1.it is not secure
2.it is not simple
3.it is not platform independent
sucure:
beacuse c++ contains
->pointers
->friend functions
->globla variables
i am trying to prove it programaticaly;
ex:
#include<iostream.h>
#include<conio.h>
class A
{
int a;
void add();
{
a=45;
cout<<a;
}
};
void main()
{
clrscr();
// hear i am try ing to create new bolck

{
// in side this block i am trying to create an object of
//type "A"
A obj;
obj.add();
// hear we may think that "obj" life has ended
}
//hear i am trying to create an pointer variable of type "A"
A *p;
// hear i am tryint to call a method to the pointer of
//tyep "A"
//with out assign any address
p->add();//it works
// than where is the security for u r "obj" already life
//edned
}
NOTE:
i cal prove the remain things also with programatically
pls contact: SoftTech computer Education,new mig,bhel hyderabad,
cell:91-9291543127
mail id: madhav_rao34@yahoo.in

Is This Answer Correct ?    17 Yes 10 No

what are the disadvantages of C++?..

Answer / jaffar

hi guys,above every said C++ is not fully object oriented
language , not support ENCAPSULATION and not platform
independent.

i think you had a lake of Knowledge about C++

The World most of the companies like Ms , Hp, HCL using C++
for their entire developments.Still Most of the Operating
Systems,System drivers,games are developed in C++.
why?
because of it is fully portable,flexible and ex tenable.And
it most of the lib are platform independents like
SL,STL,OpenGL,OpenCV and etc...

I agree that one,C++ is more complected.

It is not suitable for child-woods.

Is This Answer Correct ?    15 Yes 8 No

what are the disadvantages of C++?..

Answer / linto john

one of the main reason is that it does not support encapsulation, as all the code should be within the class, but main function from where the execution starts is outside the class.
and one more reason is that it does not support garbage collection

Is This Answer Correct ?    3 Yes 1 No

what are the disadvantages of C++?..

Answer / prince0777@facebook.com

C++ lacks in System security because it creats .obj file which can be attacked by hacker .Most of the companies uses C and C++ for system programming because it is prone to attacks in application programming.
Others are :-
* does not provide efficient means for deallocation of memory (garbage collection)
* compilation of code is costly due to 2 reasons :-
1. OS vendor has to employ professionals who can make OS environment that supports C++ applications .
2. Authenciation is required by the vendor which is costly .

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOPS Interview Questions

What are oops functions?

0 Answers  


What is polymorphism programming?

0 Answers  


What will happen when the following code is run: int x; while(x<100) { cout<<x; x++; } 1) The computer will output "0123...99" 2) The computer will output "0123...100" 3) The output is undefined

7 Answers  


What are properties in oop?

0 Answers  


WHY FUCTION OVERLOADING DOSENOT RETURN A RETEN TYPE

2 Answers  






What is Virtual Keyword?

9 Answers   IBM, NA,


Objective The objective of this problem is to test the understanding of Object-Oriented Programming (OOP) concepts, in particular, on encapsulation. Problem Description Create a program for managing customer’s bank accounts. A bank customer can do the following operations: 1. Create a new bank account with an initial balance. 2. Deposit money into his/her account. 3. Withdraw money from his/her account. For this operation, you need to output “Transaction successful” if the intended amount of money can be withdrawn, otherwise output “Transaction unsuccessful” and no money will be withdrawn from his/her account. Input The input contains several operations and is terminated by “0”. The operations will be “Create name amount”, “Deposit name amount”, or “Withdraw name amount”, where name is the customer’s name and amount is an integer indicating the amount of money. There will be at most 100 bank accounts and they are all created on the first month when the bank is opening. You may assume that all account holders have unique names and the names consist of only a single word. Output The output contains the transaction result of withdrawal operations and the final balance of all customers after some withdrawal and deposit operations (same order as the input). Sample Input Create Billy 2500 Create Charlie 1000 Create John 100 Withdraw Charlie 500 Deposit John 899 Withdraw Charlie 1000 0

0 Answers  


What is operator overloading? Give Example

11 Answers   CTS, IBM, TCS,


What is coupling in oop?

0 Answers  


What makes a language oop?

0 Answers  


what are abstract classes and how they impliment , with example

2 Answers  


c++ is a pure object oriented programming or not?

5 Answers   Wipro,


Categories