Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

object vs class c#

// Class: 
1. A class is a template for creating objects in program.
2. A class is a logical entity
3. A class does not allocate memory space when it is created.
4. You can declare class only once.
5. Class generates objects

// objects; 
1. The object is an instance of a class.
2. Object is a physical entity
3. Object allocates memory space whenever they are created.
4. You can create more than one object using a class.
5. Objects provide life to the class.  
Comment

PREVIOUS NEXT
Code Example
Java :: how to format a double in java to 2 decimal places 
Java :: java write in a file without overwriting 
Java :: diamond star pattern in java 
Java :: java string to integer 
Java :: generating random number 
Java :: java binart tree print 
Java :: java inline conditional 
Java :: initialiser une arraylist 
Java :: java print formatted string 
Java :: loop hash map 
Java :: java wait for user input 
Java :: display in java 
Java :: transpose of a matrix java 
Java :: is a and has a relationship in java 
Java :: java exception 
Java :: how to save a string to a text file 
Java :: java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver 
Java :: HttpContext.GetOwinContext().Authentication.SignOut 
Java :: apache commons collections android dependency 
Java :: android java back button closeapp 
Java :: java print default options 
Java :: Java alt + f4 
Java :: java if statement 
Java :: imageview.setbackground 
Java :: java intent extras 
Java :: if and else on one line java 
Java :: spring-boot java header appliacation/json constant 
Java :: java.lang.IllegalArgumentException: View=DecorView@5fd145b[MainActivity] not attached to window manager 
Java :: java character 
Java :: valueof in java 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =