-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path19OOPs.cpp
More file actions
19 lines (17 loc) · 967 Bytes
/
Copy path19OOPs.cpp
File metadata and controls
19 lines (17 loc) · 967 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*ORIGINAL NAME OF C++ WAS C WITH CLASSES
When creating a complex c program, the readability, maintainability and the bug-free nature decreases
C relies on functions and function callings for the major part
it also neglect the data security within
using oops or c classes solves the real world problems*/
/*Classes : template to create objects
Objects : runtime entities created in classes
Abstraction & Encapsulation : Wrap data and functions into a single unit
Inheritance : properties of one class which can be inherited to others
Polymorphism : ability to take different forms
Dynamic binding : code which will execute is not known until the program
Message passing : Object.message(information) call format, flowing of message between objects*/
/*BENEFITS OF OOPS
Better reusability of code using objects and inheritance
Principle of data hiding secures the system
Multiple objects can co-exist without interference
Software complexity can be easily managed */