🔒 Closed Pa help java code

Status
Not open for further replies.

PHC-jollibee

Forum Veteran

Create a Superclass named MobilePhone with fields: brand, model, color,and price, and a class variable mPhoneCount. It should have 2 constructors: a default and one with all fields as parameters. Create the necessary accessors, mutators, and class method. It should have a method that will display everything with labels.
Create a Subclass named SmartPhone with a field: cameraPixels. It should have 2 constructors: a default and one with all fields as parameters, inheriting all fields from the superclass. Declare the necessary accessors and mutators, and override the method you created from the superclass that will display everything with labels.
Create a main class named PhoneStore and create 2 objects per class (superclass and subclass) per constructor. Assign values either automatically, using input dialog boxes, or input files and display values of all variables on the General Output window, Dialog Boxes, or Output file.​

 
Status
Not open for further replies.

About this Thread

  • 1
    Replies
  • 1K
    Views
  • 2
    Participants
Last reply from:
Katipunero-

Trending Topics

Online now

Members online
1,033
Guests online
1,752
Total visitors
2,785

Forum statistics

Threads
2,286,582
Posts
29,038,742
Members
1,217,057
Latest member
Hahahahahahnba2k20
Back
Top