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 polymorphism needed?
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
Which type does string inherit from?
Write a program to sort the number with different sorts in one program ??
What is polymorphism in oop example?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
What is multilevel inheritance in oop?
What is polymorphism and its types?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
What does <> mean pseudocode?
what type of questions
Is react oop?
How oops is better than procedural?