Difference between static and non-static data members
Answers
Answered by
5
static members are accessed by their class name which encapsulates them, but non-static members are accessed by object reference. ... static constructor is used to initialize static fields, but for non-static fields normal instance constructor is used.
chriskevin:
awesome answer
Answered by
1
a static method belongs to class and a non static method belongs to an object of class
Similar questions
Political Science,
8 months ago
English,
8 months ago
Hindi,
8 months ago
Social Sciences,
1 year ago
History,
1 year ago
Math,
1 year ago
Chemistry,
1 year ago