what are the disadvantages of C++?
Answer Posted / 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 |
Post New Answer View All Answers
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
Can main method override?
What is overriding vs overloading?
What is the difference between a mixin and inheritance?
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?
Can we create object of abstract class?
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
What is polymorphism used for?
Why do pointers exist?
What is an advantage of polymorphism?
What are different oops concepts?
What is encapsulation in ict?
Which language is not a true object oriented programming language?
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
What is the highest level of cohesion?