CSC166 Object Oriented Programming

Object Oriented ProgrammingTU Board 2080 (new course)

Write a program to create a class named height with data members meter(int) and centimeter(int). Overload the binary + operator using friend function to add two heights.

10

This question was also asked in TU Board 2080. Read the worked answer →

Discussion

Loading…

More Object Oriented Programming questions

All Object Oriented Programming old questions