A friend of mine once shared learnings from a university class that talked about markers of each class.
Lower class can be marked by immediate gratification (sometimes out of need): Buying a bag of chips and soda because you need calories now, spend that tax refund on a TV because you want something to make yourself feel better and you "know" the end of your poverty/pain isnt ever coming, better to spend today than wait for a broken promise to come true.
One of the middle class markers is deferral of gratification for greater future gratification: buying a home instead of renting forever, going to school to eventually make more money, buying a jumbo pack of toilet paper today to save 12c a roll for the next year.
The upper class marker is that of unlimited gratification and a separate economic; You can have anything you (reasonably) could want and the basis of your life is not monetary/material but more about economic power, political influence, access to inaccessible people and places. Examples might be anything that is actually "exclusive" (as opposed to the marketing term applied to everything), relating to and breeding with people at or above your ranks and, various markers of your importance in this world to show off to others (Awards, recognitions, philanthropy) ...
And Upper class quite often go for a shabby look and can actually be quite poor
And if the poor Americans suddenly started behaving like responsible Indians, they would become middle class?
I used to be an IT auditor. I worked in public accounting. The CPAs who really crushed it were partners. They usually had been with the firm for 10+ years minimum, and were basically in sales at that point. You have to buy into the company normally when you make partner, and less than 10% of employees ever make partner.
MDs, yes they're high earners, but many go into a ton of debt, and don't start earning a lot till pretty late in their career. Many blow through all their cash too.
Lawyers, yes obviously some make bank. But many make next to nothing. I have tons of friends who are just graduating and can't find work.
As a developer, I can clear 100K a year working remotely in a very affordable state. And I have no debt. That's a pretty good living. On top of that, I love what I do. Note that I don't have kids though.
The only concern I have about software development is that it seems to plateau around 100-150K a year. I guess that makes sense though. You'd have to go into management to make more, and you wouldn't be writing much code, which is what I like to do.
Anyways, I wouldn't call a good developer making a reasonable developer salary lower middle class.