The first statement creates an object of the class Account.
The second one instantiates it;although i dont think the syntax is right.
Abstract classes can have objects created and not instantiated.
The second statement cant be used for abstract classes.
__________________
Do what you will; but not because you must. -- Zen Quote
can please any one tell me what is the meaning of the below statement
1) Account acc;
2) Account acc = new Savings Account;
can the second statement be applied for abstract classes
as i have heared abstract classes cannot be instantiated but we can create objects
BTW Creating an object is the same as instantiating a class.
and yea the 2nd statement should be
Account acc= new Account;
If I am not missing anything.
__________________
My new blog: www.pathikshah.com