answersLogoWhite

0

AllQ&AStudy Guides
Best answer

no, Parent class can not access the members of child class ,but child class can access members of parent class

This answer is:
Related answers

no, Parent class can not access the members of child class ,but child class can access members of parent class

View page

Of course. ALL classes in Java are the child of another class. Even ones which don't appear to be, actually are a child of the master Object class.

View page

child a=new child();

View page

Method overriding is similar to method overloading, with a small difference. In overriding, a method in a parent class is overridden in the child class. The method in the child class will have the same signature as that of the parent class. Since the method in the child class has the same signature & name as the method of its parent class, it is termed as overriding. In situations where you may have to explicitly call the parent class method you can use the "super" keyword and for explicitly calling the current objects method you can use the "this" keyword.

View page

it depends on who the child is and if you have hurt that child teased that child and things like that

View page
Featured study guide

Mental Health

19 cards

Who is the coach of the football-team jets

There are 32 students in a class how many ways can the class be divided in to groups with an equal number

What term is defined as concepts that are linked based on association

Which concept is organized by going from a broad level of concepts to narrower and narrower concepts

➡️
See all cards
4.5
2 Reviews
More study guides
5.0
1 Review

No Reviews
Search results