Diffrance between c and c++
Day 7.
difference between C and C++ lies in their design, features, and use cases. C++ is an extension of C with added features for Object-Oriented Programming (OOP). Below are the key differences:
1. Procedural vs. Object-Oriented Programming:
• C:
• Based on procedural programming, where the code is divided into functions or procedures.
• Does not support object-oriented concepts like classes or inheritance.
• C++:
• Supports object-oriented programming, allowing the use of concepts like objects, inheritance, encapsulation, and polymorphism.
• Can also be used as a procedural language like C.
تعليقات
إرسال تعليق