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
Why is object oriented programming so hard?
What is coupling in oop?
Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.
What is pointer in oop?
What is the example of polymorphism?
What are the advantages of polymorphism?
What is encapsulation oop?
What is the important feature of inheritance?
• What are the desirable attributes for memory managment?
write string class as your own class in java without using any built-in function
Is enum a class?
What is a superclass in oop?
Why do we use inheritance?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
What is the difference between a mixin and inheritance?