Hi all,
I have a question like "How the objects refer the methods in a class"
How they are inter-related in memory....and how they called i.e In single inheritance,how the child class object is calling the parent class method (mechanism that happening in memory)
Ex:-
class parent
{
method1()
{
syso("");
}
}
class child extends parent
{
method2()
{}
Main()
child c = new child();
c.method1()          //-----------> mechanish that happening in memory that, how this object c calling the parent
                                                   method

}
0

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month