What are Class, Constructor and
Primitive data types?
- Class is
a template for multiple objects with similar features and it is a blue print
for objects. It defines a type of object according to the data the object can
hold and the operations the object can perform. Constructor is a special kind
of method that determines how an object is initialized when created. Primitive
data types are 8 types and they are: byte, short, int, long, float, double, Boolean,
char.
Blog Author: Vijay Kumar
Go to: Coding Problem Solutions
No comments:
Post a Comment