Top "Ooad" questions

Object Oriented Analysis and Design - use this tag for questions related to Object Oriented programming.

When should you use a class vs a struct in C++?

In what scenarios is it better to use a struct vs a class in C++?

c++ oop class struct ooad
Difference Between Cohesion and Coupling

What is the difference between cohesion and coupling? How can coupling and cohesion lead to either good or poor software …

oop architecture theory ooad
What does 'low in coupling and high in cohesion' mean

I have problems understanding the statement low in coupling and high in cohesion. I have googled and read a lot …

oop ooad
Abstraction VS Information Hiding VS Encapsulation

Can you tell me what is the difference between abstraction and information hiding in software development? I am confused. Abstraction …

encapsulation abstraction glossary ooad information-hiding
Constructors vs Factory Methods

When modelling classes, what is the preferred way of initializing: Constructors, or Factory Methods And what would be the considerations …

oop ooad
What is an anti-pattern?

I am studying patterns and anti-patterns. I have a clear idea about patterns, but I don't get anti-patterns. Definitions from …

design-patterns terminology anti-patterns ooad
Why do we use Interface? Is it only for Standardization?

Why do we use Interface? Is it only for Standardization?

oop interface ooad
What does "program to interfaces, not implementations" mean?

One stumbles upon this phrase when reading about design patterns. But I don't understand it, could someone explain this for …

oop design-patterns interface software-design ooad
Coupling and cohesion

I'm trying to boil down the concepts of coupling and cohesion to a concise definition. Can someone give me a …

oop architecture theory ooad
Try / Catch in Constructor - Recommended Practice?

Something I've always been curious of public class FileDataValidator { private String[] lineData; public FileDataValidator(String[] lineData){ this.lineData = lineData; removeLeadingAndTrailingQuotes(); …

java oop exception try-catch ooad