Computer Science, asked by nidA8294, 1 year ago

Determining The Class Object?

Answers

Answered by udaykumar92
0

The methods in any class in java which returns the same class object are also known as factory methods. The class name for which Class object is to be created is determined at run-time. obj.getClass() : This method is present in Object class.

Answered by Anonymous
1

☺☺HEYAA☺☺

⏬UR ANSWER⏬

Analysis: Finding the classes and objects

Overview

Analysis is an attempt to build a model that describes the application domain -- developers do this

Takes place after (or during) requirements specification

The analysis model will typically consist of all three types of models discussed before:

Functional model (denoted with use cases)

Analysis object model (class and object idagrams)

Dynamic model

At this level, note that we are still looking at the application domain.

This is not yet system design

However, many things discovered in analysis could translate closely into the system design

Goal is to completely understand the application domain (the problem at hand, any constraints that must be adhered to, etc.)

New insights gained during analysis might cause requirements to be updated.

Analysis activities include:

Identifying objects (often from use cases as a starting point)

Identfying associations between objects

Identifying general attributes and responsibilities of objects

Modeling interactions between objects

Modeling how individual objects change state -- helps identify operations

Checking the model against requirements, making adjustments, iterating through the process more than once

Finding the objects

We often think of objects in code as mapping to some object we want to represent in the real world. Although this isn't always the case.

Here are some categories of objects to look for:

Entity objects -- these represent persistent information tracked by a system. This is the closest parallel to "real world" objects.

Boundary objects -- these represent interactions between user and system. (For instance, a button, a form, a display)

Control objects -- usually set up to manage a given usage of the system. Often represent the control of some activity performed by a system

UML diagrams can include a label known as a stereotype, above the class name in a class diagram. This would be placed inside << >> marks, like this:

<<entity>>

<<boundary>>

<<control>>

Note: Different sources and/or "experts" will give other categorizations of types of objects

There are some different popular techniques for identifying objects. Two traditional and popular ones that we will discuss are:

natural language analysis (i.e. parts of speech)

CRC cards

It also helps to interact with domain experts -- these are people who are already well-versed in the realm being studied.

Note that the goal in the analysis phase is NOT to find implementation specific objects, like HashTable or Stack.

This stage still models the application domain

HOPE IT HELPS

PLZ FOLLOW ME

PLZ MARK ME AS BRAINLIEST

☺☺$@PH@L☺☺


Anonymous: hii
Similar questions