1.

Differentiate between C and C++.

Answer»
CC++
It is procedural programming in which code will be in the form of a set of procedures for developing the applications.It is a hybrid programming language as it supports both procedural and object-oriented programming concepts.
It does not support oops features like encapsulation, polymorphism, and inheritance.It supports oops features like encapsulation, polymorphism, and inheritance.
It does not support data HIDING.It supports data hiding through encapsulation.
Operator and function overloading is not supported.Operator and function overloading is supported.
Don’t have access SPECIFIERS. Does have access specifiers.
Data and functions will be kept separated and will not be encapsulated together.Data and functions will be encapsulated together as an object.
It FOCUSES on method or process, instead of focusing on data.It focuses on data, instead of focusing on method or procedure.
Virtual and FRIEND functions are not supportedVirtual and friend functions are supported.
It does not support exception handling.It supports exception handling.
Namespace feature is not provided. Namespace feature is allowed to avoid name COLLISIONS.


Discussion

No Comment Found