Categories
Ask Engineering Software Engineering

Is allowing making member variables private considered a feature of OOP?

I have read in some tutorials that one of the differences between procedural programming and OOP is that OOP allows you to make member variables private, while in procedural programming you can’t make member variables private.

I have also read in other tutorials that allowing making member variables private is not considered a feature of OOP.

So what is the correct answer, is allowing making member variables private considered a feature of OOP or not?

Leave a Reply

Your email address will not be published. Required fields are marked *