Multiple Objects | Passing objects to function | Java | ISC | Class 12

preview_player
Показать описание
an angle can be represented in degree, minutes and seconds. Where 1 degree = 60 minutes, 1 minute= 60 seconds.
Class angle Member data: deg, min, sec
Member function: angle()//constructor assign the value zero s into deg, min and sec respectively. void readdata()// input the value for deg, min and sec.
int angletosec()// returns the angle into seconds.
void sectoangle(int s)// converts the seconds(s) into deg, min and seconds.
void add(angle, angle)// add two angle given as argument object and find the third angle into current object.
angle diff(angle)// find the difference between two angle given as argument object and current object and find the third angle into temporary object and return it.
void display() // display the angle in deg, min and sec.
Рекомендации по теме
Комментарии
Автор

Sir please make more vdos, you are such a great teacher!!!!❤❤❤

anjalichauhn
join shbcf.ru