Posted by : Sudhir Chekuri Thursday, 31 December 2015

  • Class is a blue print.
  • It is a collection of methods and member functions.
  • In Object oriented programming every line of code should be in class.
  • It is a reference type.
  • Mandatory to use the "new" keyword for creating object.
  • Class can contain variable declarations as well as initialize them at the time of declaration only.
Syntax

class classname

{

body

}

Leave a Reply

Subscribe to Posts | Subscribe to Comments

Followers

Total Pageviews

Powered by Blogger.

Blog Archive

- Copyright © 2013 DevStudent - Metrominimalist - Powered by Blogger - Designed by Johanes Djogan -