TMC2413 Tut2-Q
TMC2413 Tut2-Q
Tutorial 2
Object-Oriented in C++
1.
Identify attributes and method for student object? By using objectoriented programming techniques (using C++) implement student as a
class with attributes and methods identified above.
2.
If you are in market to buy a car, which attributes or services are relevant
to you? Write a simple program using C++ to show these attributes and
services.
3.
4.
Based on question No. 3 above write a program using C++ which will
display type of drink when the user request (key-in) the name of the
drink. For example, if user keys in beer then the system will display This
is alcoholic drink.
Tut2_q.doc