+ 2

Why classes are important in c++ ?

12th May 2018, 5:20 AM
Puneet Bhardwaj
Puneet Bhardwaj - avatar
4 Respostas
+ 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++
12th May 2018, 6:28 AM
MsJ
MsJ - avatar
+ 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
12th May 2018, 6:33 AM
MsJ
MsJ - avatar
+ 2
They help you reuse code, and to anyone that can't code makes it look super complicated 😂
12th May 2018, 7:40 AM
Paul Grasser
Paul Grasser - avatar
+ 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.
12th May 2018, 7:52 AM
ifl
ifl - avatar