Getter and setter

Can we private method outside the class using getter setter like private variable?

@KirtiGupta Hi kirti, what you can do is say, you have two classes A and B, now in B you have private method which you want to access from B. so what you can do is you can make a public method and make private method call from it and from B you call that public method so that is possible.,

So that is what you can do. So if your doubt is clear mark it resolved and rate full!