🔒 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,282
Guests online
4,148
Total visitors
5,430

Forum statistics

Threads
2,308,764
Posts
29,186,948
Members
1,191,199
Latest member
Burgir_niPapot
Back
Top