Questions tagged as 'orientação-a-objetos'

2
answers

What is the difference between a class and an object?

I was reading a book on object orientation and these two entities are treated differently. What's the difference between the two?     
asked by 28.11.2015 / 00:49
4
answers

Getters and setters are an illusion of encapsulation?

It is common to teach that it is right to leave class attributes private and to create getters and setters for them, all because of encapsulation. Is not this the same thing as leaving everything public, since you can change and...
asked by 21.07.2014 / 12:57
2
answers

What does '~' mean in front of the constructor of a C #

Working on a project here in the company, I came across some commands that are now being used the most ( yield , ?? , anonymous type ) but until I understood, but one that caught my attention because I did not know the what is....
asked by 12.03.2014 / 20:56
3
answers

What are covariance and contravariance?

I have seen something of the and I know this relates in some way to object orientation. What are they? How do they affect my code, and how can I use them to encode better?     
asked by 17.09.2014 / 19:26
1
answer

Programming oriented towards interface and not for implementation, why?

What are the main reasons (in practice) that lead developers to apply the practice of developing interface-oriented rather than implementation?     
asked by 11.09.2015 / 21:03
1
answer

How do prototypes work in JavaScript?

It seems to me that the concept of prototype is fundamental in JavaScript and even in several places I have read that it is one of its strengths. However, this does not seem like a simple concept to understand for those who come from other langu...
asked by 08.05.2014 / 22:02
7
answers

In object orientation, why are interfaces useful?

Can anyone give a practical explanation on why interfaces are used and why they are useful to us developers?     
asked by 29.01.2014 / 21:13
6
answers

Is there a JavaScript class?

I'm studying JavaScript and saw some explanations that left me with doubts. Here in StackOverflow I saw several questions about whether to create an abstract class in JavaScript. But my question is: Is it possible to create a class in JavaSc...
asked by 15.01.2016 / 17:55
5
answers

What is and what is an abstract class for?

In object orientation, what is the meaning of an abstract class? What is its purpose?     
asked by 17.09.2015 / 15:07
6
answers

Using many interfaces is a bad programming practice?

I'm a student in Information Systems and I'm modeling a game, a virtual pet that has its needs and talks with its owner, below follows the modeling of classes and interfaces. I showed it to a friend in Computer Science, he thought it had a lo...
asked by 09.07.2014 / 16:23