tatikor_143
asked on
C++ topics..
Hello Experts,
I want to know the following things in C++..
1) What is encapsulation?
2) what is abstraction?
3) what is aggregation?
4) what exactly is the use of abstract class in C++ and also with virtual functions?
I apprecitate if some one can explain with a good example..
5)
I want to know the following things in C++..
1) What is encapsulation?
2) what is abstraction?
3) what is aggregation?
4) what exactly is the use of abstract class in C++ and also with virtual functions?
I apprecitate if some one can explain with a good example..
5)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Can I ask you why you gave a B grade ? That usually means that the answer given was not sufficient (didn't address your question completely).
If there are still questions left, you can always ask for clarification - you do not need to accept a reply as long as the question hasn't been answered yet.
If there are still questions left, you can always ask for clarification - you do not need to accept a reply as long as the question hasn't been answered yet.
Have a look to the time stamp of the posts.
What does a B grade have to do with timestamps ?
Should have been "See the answer to 2)." of course :)
I also forgot an example for 4) - Her it is (using the same classes as in 2) ) :
std::vector<Car*> carpark;
carpark.push_back(new Volkswagen());
carpark.push_back(new Renault());
// the car park now contains a Volkswagen and a Renault
// we can drive both without knowing the type :
carpark[0].drive();
carpark[1].drive();
Both cars in the car park will now drive in their own specific way (according to the implementations for a Volkswagen and a Renault respectively).