Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
can we define same functions for the two or more different objects of different class
#1
) it is necessary for any object/entity that it has some attributes , behavior or both????

2) can we show some entities without attributes or their functions in some scenarios/cases ?????

3) can we define same functions for the two or more different objects of different classes.?
Reply
#2
It is necessary that all objects have some attributes as well as behaviour.
2. In real life every object has its attributes and behaviour, so every entity has attributes and functions.
3. Yes we can define same functions for more than two different objects of different classes.

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  how often do we require to use inline functions and macros. their importance in c++ Vuhelper 0 8,462 05-31-2012, 01:49 AM
Last Post: Vuhelper
  Is void used only with functions? If yes than why? Vuhelper 0 2,500 11-05-2011, 05:10 PM
Last Post: Vuhelper
  C++ Help with Template class program 2011 Vuhelper 0 823 07-23-2011, 05:40 PM
Last Post: Vuhelper
  Multidimensional Array vs If-Statements and Functions? in c++ Vuhelper 0 832 07-20-2011, 10:45 PM
Last Post: Vuhelper
  must have an argument of class or enumerated type Vuhelper 0 1,476 06-11-2011, 06:46 PM
Last Post: Vuhelper
  C++ access private data members in another class Vuhelper 0 1,968 06-07-2011, 08:26 PM
Last Post: Vuhelper
  Define Call by reference in c++ 2011 Vuhelper 0 3,242 06-01-2011, 10:58 PM
Last Post: Vuhelper
  Define calling function in c++ 2011 Vuhelper 0 2,258 06-01-2011, 10:40 PM
Last Post: Vuhelper
  Define function in c++ May 2011 Vuhelper 0 2,276 05-30-2011, 03:11 PM
Last Post: Vuhelper
  define program in c++ May 2011 Vuhelper 0 2,086 05-29-2011, 06:11 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)