class that is declared using “abstract” keyword;
may or may not include abstract methods ( has no body)and concrete methods (methods with body) ;
we can not allowed to create object of Abstract class,
An abstract class has no use until unless it is extended by some other class ,logic...
Access Modifiers 2 – Static,Abstract,Final
Posted by Mantled with No comments
Static- Variables are calling Class variables. These members belong to the class not to the object,means values of these variables are not part of the object state.creating its while initiating class, not instance .Final-
Abstract -
Final - variable...
Access Modifiers – Public, Private, Protected & Default
Posted by Mantled with No comments
Public - This is the least restrictive,accessible to entire project;
Default - If no access modifier is specified in the declaration, accessible only within package,not accessible in other packages or sub packages;
Protected - Accessible to all classes in the package...
Subscribe to:
Posts (Atom)