ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
   
 
Categories  >>  Software  >>  Microsoft Related  >>  C Sharp
 
 
 
Question
why C++ Partial Object Oriented Programming Language and C# 
and Java Fully Object Oriented Language
 Question Asked At :: TCS, Assyst, 3i - Infotech, Alexa, Naresh Tech
 Question Submitted By :: jaipal
I also faced this Question!!     Rank Answer Posted By  
 
Answer
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.

 
Techy
 
View All Answers
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2012  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com