Helo frndz,

I'm a nob in c++....So, I want to know about default constructor. How to create? Why default constructor? How to create a no-arg constructor that creates a default triangle??...Plz help...


The default constructor is just used when no other constructors have been declared. To create a no-arg constructor (override the default constructor):

class MyClass {

MyClass::MyClass() {
    //some code...

The default constructor is simply the one which take no args.

Thnx nmaillet & Asafe...Thnx for Ur help...:)