please note to this. I have a super class
class A
{
public void update(int num)
{...}
}
and have a other class. inherit of class A
class B extends A
{
public void update(string str)
{...}
}
B obj = new B();
obj.update(50); // oh no, bad
obj.update(""); // yes
now, i want that when i create new from class B the update() of class A not access. -in other words i want access to the update() method of B only