what are the disadvantages of C++?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is abstraction encapsulation?

645


what type of question are asked in thoughtworks pair programming round ?

1749


What are oops methods?

558


2. Give the different notations for the class.\

1576


String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?

1932






What is the advantage of oop over procedural language?

617


why reinterpret cast is considered dangerous?

1893


Is abstract thinking intelligence?

583


Write a program to sort the number with different sorts in one program ??

1905


What is object in oop?

669


Can an interface inherit a class?

549


What is encapsulation with example?

568


Get me a number puzzle game-program

1684


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

2023


i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<

1409