Question Solved1 Answer Write a program in C ++ language that applies the main matters presented in the object-oriented programming subject in the C ++ language in an educational way that enables the user to identify the main concepts in the subject and learn how to use and program them. Attached are examples of each concept? These concepts: Records (Structs) Classes and Data Abstraction (Introduce Object Paradigm, Class and Object Declarations, Constructors, Destructors, Constant Objects, and Constant Member Functions, Array of Objects, This Pointer, Static Members of a Class, Copy Constructor, When Constructors and Destructors are called, Abstract Data Type) Composition and Inheritance (Objects as Members of Classes, Inheritance Implementation, Order of Construction and Destruction Execution, Dominating Base-Class Members in a Derived Class, Overriding Base-Class Members in a Derived Class, Derived-Class Object As a Base-Class Object, Derived- Class Pointers as Base-Class Pointers) Polymorphism and Virtual Functions (Polymorphism, Virtual Functions, Virtual Destructor, Rules of Virtual Functions) Overloading (Operator Overloading, Operator Function, Overloading Rules, Friend Functions, Operator Functions as Member and Non-Member Functions, Overloading Binary Operators, Overloading Stream Insertion and Extraction Operators, Overloading the Assignment Operator, Overloading Unary Operator, Conversion Constructor) Templates (Function Template, Class Template) Exception Handling

AURLEO The Asker · Computer Science

Write a program in C ++ language that applies the main matters presented in the object-oriented programming subject in the C ++ language in an educational way that enables the user to identify the main concepts in the subject and learn how to use and program them. Attached are examples of each concept?
These concepts:
Records (Structs)
Classes and Data Abstraction
(Introduce Object Paradigm, Class and Object Declarations, Constructors, Destructors, Constant Objects, and Constant Member Functions, Array of Objects, This Pointer, Static Members of a Class, Copy Constructor, When Constructors and Destructors are called,
Abstract Data Type)
Composition and Inheritance
(Objects as Members of Classes, Inheritance Implementation, Order of Construction and Destruction Execution, Dominating Base-Class Members in a Derived Class, Overriding Base-Class Members in a Derived Class, Derived-Class Object As a Base-Class Object, Derived- Class Pointers as Base-Class Pointers)
Polymorphism and Virtual Functions
(Polymorphism, Virtual Functions, Virtual Destructor, Rules of Virtual Functions)
Overloading
(Operator Overloading, Operator Function, Overloading Rules, Friend Functions, Operator Functions as Member and Non-Member Functions, Overloading Binary Operators, Overloading Stream Insertion and Extraction Operators, Overloading the Assignment Operator, Overloading Unary Operator, Conversion Constructor)
Templates
(Function Template, Class Template)
Exception Handling

More
See Answer
Add Answer +20 Points
Community Answer
8FWGBA The First Answerer
See all the answers with 1 Unlock
Get 4 Free Unlocks by registration

CLASS AND OBJECTS Class and objects are the two main aspects of OOPS.Consider a class student,student having student id,name ,class,department etc.these are the objects of the class student.When the inividual objects are created ,they inherit all the variables and functions from the class. creating  a class using keyword class class MyClass {       // The class   public:             // Access specifier     int myNum;        // Attribute (int variable)     string myString;  // Attribute (string variable) };       create a object class MyClass {         public:                  int myNum;            string myString; }; int main() {   MyClass myObj;  // Create an object of MyClass   // Access attributes and set values   myObj.myNum = 15;   myObj.myString = "Some text";   // Print attribute values   cout << myObj.myNum << "\n"; cout << myObj.myString;   return 0; } BASIC CONCEPTS OF OOP The object oriented programming has been developed with a view to overcomethe drawbacks of conventional prograamming approaches.The OOP approach is based on certain concepts that it helps it attian its goal of overcomig the dwawbacks or shortcomings of conventional programming approaaches. GENERAL ONCEPTS OF OOPS DATA ABSTRACTION DATA ENCAPSULATION MODULARITY INHERITANCE POLYMORPHISM DATA ABTRACTION Abstraction is the concept of simplyfying a real world concept into its essential elements.For example take a switch board.you can press certain switches according to your reuirements.What is happening inside,how it is happening etc you needn't know.This is abtraction ,you know  only the essential things to operate on swithc board without knowing The background details of switchboard. ENCAPSULATION Encapsultion is the most fundamental concept of OOP.It is the way of combining both thefunctions that operate on that data under a single unit. The only way to access the data is provided by the funtions.Thse functions are called member.If you want to read a data item in an object ,you call a member function in he object.It will read the item and return the value to you.You can't access the data directly.THe data is hidden,so it is safe from accidential alteration.Data and its functions are said to be encapsulated into a single entity.Encapsulation is a way to implement data abstraction. #include <iostream> using namespace std; class Employee {   private:     // Private attribute     int salary;   public:     // Setter     void setSalary(in ... See the full answer