Java - OOPS - Class


Class:
·         It is a blueprint. It is a collection of objects.
·         It holds the set of properties and methods.
·         It is logical entity not physical entity. Eg. Class called Expensive cars . It could have objects like BMW, Toyota etc.,
Rules:
1.       Modifiers – public or default
2.       Class Name – name should first letter caps
3.       Superclass – using extends you can get only one class properties
4.       Interfaces –using implements you can get list of interfaces using comma

Comments

Popular posts from this blog

Monolithic & Heterogenous Application

How to set Java Object into JaxBElement ?