Questions tagged [object-oriented-analysis]

Object Oriented Analysis (OOA) is the initial approach in solving a problem - designing a conceptual model as the proposed solution based on a set of requirements.

Object Oriented Analysis (OOA) is the initial approach in solving a problem - designing a conceptual model as the proposed solution based on a set of requirements. This phase involves UML diagrams, a user interface mock up, and use cases.

This approach doesn't include any plans for implementation, how the model works under the hood (Usually planned later in the Object Oriented Design (OOD) phase)

563 questions
44
votes
1 answer

Resources to learn solving system design interview problems

System design questions are a type of questions that tech companies tend to ask in the interviews in addition to more common algorithmic and knowledge based questions. This term covers both abstract Object Oriented Design sketch a class diagram for…
Nadbor
  • 591
  • 1
  • 5
  • 5
33
votes
6 answers

"Hello World" in MVC Pattern

In an interview for some company, I was asked this question. What design patterns do you know...then I was told to write simplest "hello world" application based on MVC Design Pattern. I came up with a JavaScript program var arr = ["a","b","c","d"];…
32
votes
6 answers

Is This Use of the "instanceof" Operator Considered Bad Design?

In one of my projects, I have two "data transfer objects" RecordType1 and RecordType2 that inherit from an abstract class of RecordType. I want both RecordType objects to be processed by the same RecordProcessor class within a "process" method. My…
30
votes
3 answers

What is the exact difference between Adapter and Proxy patterns?

As I understood both Adapter and Proxy patterns make two distinct/different classes/objects compatible with each for communication. And both of them are Structural patterns. I am getting that both of them are pretty much similar with each other. Can…
19
votes
4 answers

What is the exact difference between 'Adapter' and 'Mediator" patterns?

I know that Adapter is a structural pattern and Mediator is a behavioral one. But as far I understood, what both of them are doing, is connecting two (or more) other classes which are potentially incompatible (not so maintainable) for direct…
19
votes
5 answers

Java - 2 Way 'Has A' Relationship

I have just started a project to make my employer a management software. I have a niggling, but potentially simple, query that I can't seem to find any information on. Is it prudent/good practice to have a 2 way 'has a' relationship between…
Rudi Kershaw
  • 12,332
  • 7
  • 52
  • 77
18
votes
4 answers

objects with state and behavior in oop

I keep hearing the term object has behavior and state or just one of them. But what is the difference or what does it mean, and if anyone can give an example I would really appreciate it.
Mythriel
  • 1,360
  • 5
  • 24
  • 45
18
votes
2 answers

Head First Design Patterns vs Head First Object Oriented Analysis and Design

Currently I am in the process of learning Java via Head First Java and am beginning to look ahead at reading more about OOP / design patterns. My question is which book I should pursue after Head First Java. I am torn between Head First Design…
IOInterrupt
  • 539
  • 1
  • 4
  • 14
18
votes
4 answers

Differences between Strategy Pattern and Inheritance

There is a same concept for Strategy Pattern and Inheritance, so I can implement Strategy Pattern with Inheritance that sounds it is simpler and cleaner than Strategy Pattern. Startegy Pattern: class IBase { public: virtual void…
18
votes
5 answers

Declaring children type in base class; Is it bad or not?

Recently I came across some code that has declared the children types as an enumeration in the base class. Here's a simple example: public enum EmployeeType { Manager, Secretary } public class Employee { public string Code { get; set;…
Saeed Neamati
  • 35,341
  • 41
  • 136
  • 188
15
votes
4 answers

Put method in trait or in case class?

There are two ways of defining a method for two different classes inheriting the same trait in Scala. sealed trait Z { def minus: String } case class A() extends Z { def minus = "a" } case class B() extends Z { def minus = "b" } The alternative is…
Mikaël Mayer
  • 10,425
  • 6
  • 64
  • 101
14
votes
5 answers

Splitting big classes with Inner classes in Java

I am working on an Android project. I have searched high and low but I can't figure out a good strategy to split and package my code. My problem is that I have Inner Classes that use the main class variables, and I can't figure out how to decouple…
xyz
  • 3,349
  • 1
  • 23
  • 29
14
votes
3 answers

Software Design Website(s)

What websites (not books) document designs (UML or otherwise) for software applications? Building architects have many resources available for inspiration and construction. I do not seek resources on constructing software (such as Meyer's…
Dave Jarvis
  • 30,436
  • 41
  • 178
  • 315
11
votes
2 answers

What is 'Evolutionary Development Methodology'?

What is 'Evolutionary Development Methodology' means in the context of Mobile Development (Android)? Is there any similarity to 'Object Oriented Methodology' as well? Does someone have an example piece of code?
10
votes
9 answers

Class methods vs instance methods

Hi Are class methods generally measured to be faster than instance methods since it doesn't require loading an instance? If so, should we use class methods when possible? Thanks
Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424
1
2 3
37 38