Home /
Expert Answers /
Accounting /
please-solve-the-c-codes-solve-this-c-code-encapsulation-and-data-abstraction-1-create-a-stud-pa230
(Solved): Please Solve The C++ Codes
Solve This C++ Code: Encapsulation and Data abstraction 1. Create a stud ...
Please Solve The C++ Codes
Solve This C++ Code: Encapsulation and Data abstraction 1. Create a student class who has three attributes named name, roll and address. (follow proper rules of data abstraction) 2. Create a triangle class and find the area. (using constructor not encapsulation) 3. Create two classes. One is for find the average salary of three worker and another one is for find the average of three employee. And find the average of both class in main function. (using constructor in one class and using encapsulation method in another class. 4. Create a class named human. and make a program to count the object which is created by user. 5. Create a class name animal. And make two-member functions but give them same name (e.g. display ()). Explain what is happening.
1. // C++ program to create and implement student class #include #include using namespace std; class student { private: // attributes of student which are hidden from the user // cannot be accessed directly by the objects outside