Skip to main content

Posts

Showing posts with the label Java Class

PROGRAMMING IN JAVA || UNIT 1- || DEFINE CLASS

  II BCA -  CORE PAPER 3 PROGRAMMING IN JAVA UNIT 1 DEFINE CLASS Java Class   ·         A  Java Class  is like a  wrapper or envelope  that comprises a number of Methods and Variables. ·         A class defines the properties and behavior of an object. ·         In Java class, the variables represent the properties of the object and the methods that represent the behavior of the object. ·         A Java program consists of a CLASS with some Methods & Variable. Java Class Syntax Java classes defined in the following way: class MyClass {             // fields,             // constructor, and             // method declarations   ...