DXC Technology interview question

explain the object declaration procedure in a programming language of your preference.