![]() Related Questions Latest Answer : By extending the abstract class by other class and creating object to that class ... Tags : Abstract What is the use of abstract classes? How will we decide in a scenario, whether we have to use abstract class or interface? Read Answers (21) | Asked by : Rajiv Tags : Abstract Latest Answer : The class whose all methods have body is called as conceetclass Yes object class is concreet class ... Read Answers (6) | Asked by : vishal Class Outer{int a;Outer (){a=10;}public static void main(String args[]){final Outer o1=new Outer();Outer o2=new Outer();class inner{inner(){o1.a=20;//allowed//o2.a=30; not allowed}}}}Why inner classes can access only final variables as illustrated? Thanks in advance! Most frequently used diagrams are- Class Diagram- Sequence DiagramRarely Used- Component Diagram- Package DiagramClass Diagram A diagram that shows a collection of declarative (static) model elements, Latest Answer : Class Diagram : They describe the static structure of a system.Package Diagram : Package diagrams organize elements of a system into related groups to minimize dependencies between packages.Object Diagram : ... What are advantages of inner class Latest Answer : Defining a class within another class is known as nested class.If class B is defined within class A, then B is known to A, but not outside of A.Class B has access to the members, including private members of the Class A.However,the class A does ...
Sponsored Links
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||