Define class accessibility and modifier

Topic: week 5

StyleAPA
Number of words715
Number of sources0
SpacingDouble
PowerPoint slides0

Task 5

Module 5: Design and Implement User-defined Classes
Model Classes and Objects
Learn
Play Video
and describe object and classes
Design an object diagram using UML notations
Design a class diagram using UML notations

-Watch the LinkedIn Learning course: Programming Foundations: Object-Oriented Design with Olivia Stone and Barron Stone
-Watch this LinkedIn Learning section: Section 1 – UML Basics from the course: iOS Development: Architecture with KarolyNyisztor
-Watch the LinkedIn Learning section: Diagramming with UML from the Course Java Essential Training for Students with Peggy Fisher
– Watch the LinkedIn Learning section: Flowcharting and UML Diagrams from the course: Learning Java 8 with Peggy Fisher

Define Classes and Create Objects by reading the following:

-Creating Objects
-Data Access Object
a) Define classes for objects
b) Define object state and behavior
c) Define constructors
d) Instantiate objects
e) Access objects using reference variables
f) Access objects data and methods
g) Reference objects data fields

Learn how to implement the class by reading the following:

Implementing an Interface
a) Define class accessibility and modifier
b) Explore the main() method
c) Define the default constructor and private data
d) Define instances and static variables
e) Define instance and static methods
f) Define Getter and setter methods
g) Use this keyword for referencing the calling object itself

Research the three essential features of objects:

• state
• behavior
• identity

Define the terms and describe how they relate to one another. Cite at least two sources using APA from the library database.

PART 2

1) Brainstorm in groups to define the Circle class and use it to create objects using UML notations and Java notions, respectively.

2) Work individually to implement the class defined and discussed in (1), compile, and run the class using NetBeans. Students then work together to resolve errors (if any).

3) Work individually or in the group to add two instance methods to the Circle class that compute the area of the circle and the circumference of the circle.

Assessment:

Students work individually to create the Square class using both UML and Java notation and add an instance method to calculate the perimeter of the square. The student(s) then implement, compile and run the class in NetBeans. Submit the results below in a Word or PDF document.

 

Image preview for “define class accessibility and modifier “

Define class accessibility and modifier

Click the purchase button to get full answer.

Open chat
Hello
Contact us here via WhatsApp