answersLogoWhite

0

What is different is pop and oop in c plus plus?

Updated: 8/10/2023
User Avatar

Raja7869

Lvl 1
11y ago

Best Answer

pop the work is done with the help of functions and more previlage is given to function and not the data, also you dont have data hiding,operator overloading, function overloading, access specifiers and inheritance features in pop and when your business logic expanded pop was not able to meet the required demand and because of this oops came inot action where in oops data used to get more importance,data hiding is possible with the help of access specifiers. Each object controls it's own data, Inheritance is possible and many more features are available

Example of pop is :c,fortran

Example of oops is: java,C#

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
User Avatar

Anonymous

Lvl 1
3y ago
This is amazing website for coupons and discounts. Please click the link below; Utter Coupons, Stadium Good Coupons.
More answers
User Avatar

Wiki User

11y ago

POP, or procedure oriented programming, is akin to spaghetti code, with unstructured statements and prevalent use of goto statements. There are no functions in POP, all code is effectively written as a single procedure which jumps back and forth, procedurally. POP is both difficult to read and difficult to maintain. Examples of POP include machine code and low-level assembler. There are few, if any, high-level POP languages these days.

Structured programming adds structure and order to POP, by eliminating the need for goto statements and introducing structured loops and procedure calls. C is an example of a structured programming language.

OOP, or object-oriented programming, is an extension to structured programming. While structured programming gave order to the chaos that was POP, the data was still largely exposed. Any code with access to the data could manipulate the data and, the more complex programs became, the more difficult it was to keep track of how data was being manipulated. OOP addresses this by allowing data and the methods that manipulate that data to be encapsulated into entities known as objects. The objects effectively hide the data from outside influence and expose a carefully controlled interface to that data. The interface allowed consumers of the objects to access and manipulate the data but in a highly controlled manner: each object takes care of its own data. Moreover, so long as the exposed interface remained the same, the underlying implementations of those interfaces could be modified without affecting the consumers of those objects. Objects could also be re-used to create more specialised objects, without the need to duplicate the code in the original objects, simply by inheriting the code, and overriding it where necessary. Polymorphism also allowed objects of different types to be treated as if they were the same type of object by exposing a common virtual interface that could be overridden by the more specialised objects. Thus every object "does the right thing" according to its type, even when that type may be completely unknown to the consumer. Finally, abstraction allows conceptual objects (such as shapes) to act as abstract interfaces to actual objects (such as circles and squares). C++ is an example of an object-oriented programming language.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

it gives more important to data than procedures...

This answer is:
User Avatar

User Avatar

Anonymous

Lvl 1
3y ago

Oop starts with an o and pop starts with a p

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is different is pop and oop in c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering
Related questions

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 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 is the difference between pop and oop in c plus plus program?

in pop a list of instruction telling a computer step by step what to do. same is the case in c++. eg.in case of every c++ program we first of all call the header files. in case of simple c++ program , after the header files we we use the function main, then there the initialization or declaration etc,. so in this way we tell the compiler step by step what to do. so we can say that c++ is a pop language. now let us consider a program of class, in this we declare the object and each object has its own method as is in oop. so we can say that c++ is both oop and pop..


How is java different than any other OOP languages like C plus plus?

Every languages are different, a C++ compiler cannot compile a Java source.


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 not ooplanguage?

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


Algorithm of push and pop in c plus plus?

pop push c++ programming


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


Defference between c plus plus and c?

these are difference in between c and c++: a) C is a SPL and C++ is a OOP. b) C has not concept of object but C++ has this feature. c) C has not 'class' name data type but C++ has.