Question 1: Create a class Mobile, declare its variables for mobile specs (i.e brand, color, camera) and initialized constructor. Provide set, get and display methods for each instance variable. Now create several mobile objects in main class to call these functions. Question 2: Write a program to create a room class, the attributes of this class is roomno, roomtype, roomarea and ACmachine. In this class the member functions are getdata, setdata and displaydata. Now create several objects in main class to call these functions.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter9: Using Classes And Objects
Section: Chapter Questions
Problem 14RQ
icon
Related questions
Topic Video
Question

Write java code

Question 1: Create a class Mobile, declare its variables for mobile specs (i.e brand, color, camera) and
initialized constructor. Provide set, get and display methods for each instance variable. Now create several
mobile objects in main class to call these functions.
Question 2: Write a program to create a room class, the attributes of this class is roomno, roomtype, roomarea
and ACmachine. In this class the member functions are getdata, setdata and displaydata. Now create several
objects in main class to call these functions.
Transcribed Image Text:Question 1: Create a class Mobile, declare its variables for mobile specs (i.e brand, color, camera) and initialized constructor. Provide set, get and display methods for each instance variable. Now create several mobile objects in main class to call these functions. Question 2: Write a program to create a room class, the attributes of this class is roomno, roomtype, roomarea and ACmachine. In this class the member functions are getdata, setdata and displaydata. Now create several objects in main class to call these functions.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 4 images

Blurred answer
Knowledge Booster
Instruction Format
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning