Make a Class that have following attributes and behaviors (set values to X & Y, get values of X & Y
and calculate area).
Loading
Make a Class that have following attributes and behaviors (set values to X & Y, get values of X & Y
and calculate area).
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Abhishek YadavPosted Feb 27, 2024, 7:24 AM
Sam HobbsPosted Feb 25, 2024, 4:58 AM
How much of what your instructor taught you do you remember? Do you have a specific question? How much have you been able to do?
Vishal JoshiPosted Feb 25, 2024, 4:57 AM
Hello,
Please check out the below sample code to get the expected result.
Below is the code to create an instance of the class and call its behavior.
Thanks
Vishal Joshi