answersLogoWhite

0

C++ is only partially OOP because it is a superset of C and, for the sake of backward compatibility, retains the concept of primitive data types (such as integrals like char and int) and pointer data types, which are all strictly non-object-oriented. In Java and C#, there is no concept of a primitive data type. Even integral types such as int are treated as objects and there is no concept of a pointer data type.

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

Why is C plus plus is not a true OOP language?

C++ is based on C. C was not object oriented, therefore the language was not made to be object oriented and moreover C++ is not a "true OOP language". It is simply a non-OOP language with OOP functionality built onto it.


What are the concepts of object oriented programming in c plus plus?

The concepts of OOP in C++ are the same as for OOP in any other programming language: abstraction, encapsulation, inheritance and polymorphism.


What are the main features of OOP in c plus plus?

The main features of OOP are the same regardless of the language. They are: encapsulation; data hiding; inheritance; and polymorphism.


Why c plus plus is called as oops?

OOP means "object oriented programming" this means that you can make objects instead of C where you use procedural programming (it's advance try to google it :) )


What is different of c language and c plus plus?

Primarily OOP support, but there are minor syntax difference. By and large anything you can do in C you can also do in C++.


Why c plus plus is not ooplanguage?

C++ is an OOP language, so the question does not make sense. Please restate the question.


Why is C plus plus called an object oriented language?

It is called an OOP language because it supports the four pillars of the OOP paradigm: abstraction, encapsulation, inheritance and polymorphism. However, it is not 100% object oriented as it also supports the concept of primitive variables, including pointers, which are not implemented as objects.


Why c plus plus is partially oops and obs?

C++ is not 100% OOP because it inherits from C (a non-OOP language) and therefore supports all primitive C types which are strictly non-object-oriented. C# and Java are 100% object oriented as all "primitives" are object-based.


Why c plus plus is not fully oop based?

C++ evolved from C and therefore retains the concept of primitive variables inherited from C, including int and char. In 100% OOP languages such as Java, these primitives would be implemented as objects. But in C++, they are primitive in nature. That is, they have no built-in methods such as .ToString() associated with them.


Where can you get oop e balaguruswamy with C plus plus solutions?

solution of object oriented programming e balagurusamy


Can you create class in 'c'?

Class acts as an encapsulation of attributes and methods, that is used by an object oriented programming (OOP) language. Since C is not an OOP, its a structural programming language, one can not create classes in C. That is why OOP version of C was developed called C++, where one can work with classes.


Why c is called partially an OOP language?

C is not an OOP language, period. However, while C++ supports OOP it does not rely on it. With C++, you can mix procedural, structured and object-oriented principals by mixing C++ code with C-style code and even raw assembly routines, neither of which are object-oriented.