+ 2
Why classes are important in c++ ?
4 Respuestas
+ 2
Access control
Static members, which belong to the scope of a class but stand alone from all objects; this is part of the language-level modularity that C++ classes provide.
Inheritance and polymorphism
Virtual functions:
Abstract classes
constructor destructor and to use other object oriented concepts like abstraction encapsulation ect need classes in C++
+ 2
so basically classes are required to use all objects oriented concepts like encapsulation abstraction data binding access modifier friends function virtual and pure virtual function classes is play important role in that
+ 2
They help you reuse code, and to anyone that can't code makes it look super complicated 😂
+ 1
Object oriented concepts were introduced in C++ as an improvement over C,,
as a way to help structuring the code better, for the development of large applications.