why C++ Partial Object Oriented Programming Language and C#
and Java Fully Object Oriented Language

Answer Posted / techy

Tsahi's answer is correct. Let me add few points to support
his answer.

1. According to "Pure" object oriented principle, no
method/routine should exist without the object. In C++, main
() method can be independant and does not need any class
but Java/C# its static method of "some" class.

2. C++ provides "Friends" which is absolute corruption to
the OO-Principle of encapsulation.

3. According OO-Principle, everything needs to be object.
C++ provide inbuilt datatype- int,float etc which are not
object in their nature. C#/Java also provides same kind of
datatype but its inner presentation is always object. For
example: in java you have got wrapper classes and in C#,
all these types are derived from System.ValueType object.

4. According OO-Principle, one object should have only one
hierarchical parent reference. In C++, Multiple-Inheritance
contradicts this principle.

Is This Answer Correct ?    129 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we instantiate abstract class in c#?

475


What is a Command Object in C#?

554


What are the benefits of using windows services:

551


What is visual c# net?

494


What is int tryparse in c#?

524






What is use of a HashTable in .NET?

703


What are the value types in c#?

510


Explain the 3 types of properties in c# with an example?

547


What is extended class in c#?

476


What is the difference between list and ilist in c#?

484


Why do we need reflection in c#?

493


Why do we use stringbuilder in c#?

519


Give an example to show for hiding base class methods?

458


What is a hash table in c#?

515


What is Global Assembly Cache (GAC) and what is the purpose of it? (How to make an assembly to public? Steps) How more than one version of an assembly can keep in same place?

571