Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Assign and print the id number, phone number and address of two students having names James and Paul respectively by creating two objects
1. Assign and print the id number, phone number and address of two students having names "James" and "Paul" respectively by creating two objects of class 'Student'. 2. Write a program to print the area of a rectangle by creating a class named 'Area' having two methods. First method named as 'setDim' takes length and breadth of rectangle as parameters and the second method named as 'getArea' returns the area of the rectangle. Length and breadth of rectangle are entered through keyboard. (apply classes and objects concept)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started