I have generic class with some fields with "protected" scope. Is it possible to override or something this scope in an inherited class? Here's example of my generic (extended) class:
public abstract class BaseDAO<T extends Entity> {
protected MongoClient client;
protected MongoCursor<Document> cursor; }
So, how, if be the most specific, to change "protected" to "private" in my inheriting classes?
Google doesn't understand my requests and offers the most basic tutorials about inheritance, which don't give answer for my question. Tried to search here too by some tags a la "java scope override" and something. Didn't work.
Thanks for feedback!